Fixed spacing of logger skeleton. Added initial comment to main.h
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
136b000d77
commit
7fa4ffd9fd
@ -37,6 +37,7 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "world.h"
|
#include "world.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
#include "texts.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:utils
|
* SECTION:utils
|
||||||
@ -143,6 +144,9 @@ wmud_logger(const gchar *log_domain, GLogLevelFlags log_level, const gchar *mess
|
|||||||
case G_LOG_LEVEL_INFO:
|
case G_LOG_LEVEL_INFO:
|
||||||
g_print("INFO: %s\n", message);
|
g_print("INFO: %s\n", message);
|
||||||
break;
|
break;
|
||||||
|
case G_LOG_LEVEL_WARNING:
|
||||||
|
g_print("WARNING: %s\n", message);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
g_print("UNKNOWN LEVEL %03d: %s\n", log_level, message);
|
g_print("UNKNOWN LEVEL %03d: %s\n", log_level, message);
|
||||||
break;
|
break;
|
||||||
|
18
wmud/main.h
18
wmud/main.h
@ -1,3 +1,21 @@
|
|||||||
|
/* wMUD - Yet another MUD codebase by W00d5t0ck
|
||||||
|
* Copyright (C) 2012 - Gergely POLONKAI
|
||||||
|
*
|
||||||
|
* main.h: main and uncategorized functions
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
#ifndef __WMUD_MAIN_H__
|
#ifndef __WMUD_MAIN_H__
|
||||||
# define __WMUD_MAIN_H__
|
# define __WMUD_MAIN_H__
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user