Improved debugging facilities
This commit is contained in:
parent
13e89cb1f2
commit
b6e8f65fa3
17
src/debug.h
17
src/debug.h
|
@ -1,6 +1,13 @@
|
|||
#ifndef DEBUG_H
|
||||
#define DEBUG_H 1
|
||||
#ifndef __GM_DEBUG_H__
|
||||
#define __GM_DEBUG_H__ 1
|
||||
|
||||
void debug_msg(int level, char *line, ...);
|
||||
void debug_set_level(int level);
|
||||
#endif
|
||||
typedef enum _GmDebugLevel {
|
||||
DEBUG_ALWAYS = 1 << 1,
|
||||
DEBUG_DEFAULT = 1 << 2,
|
||||
DEBUG_MCP = 1 << 3
|
||||
} GmDebugLevel;
|
||||
|
||||
void gm_debug_msg(GmDebugLevel level, char *line, ...);
|
||||
void gm_debug_set_level(GmDebugLevel level);
|
||||
|
||||
#endif /* __GM_DEBUG_H__ */
|
||||
|
|
Reference in New Issue