00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _DEBUG_H_
00011 #define _DEBUG_H_
00012
00013
00014
00015 #ifndef DPRINTF
00016
00017 #ifdef __GNUC__
00018
00019 #ifndef DEBUG
00020 #define DPRINTF(level, args...)
00021 #else
00022 #define DPRINTF(level, args...) DebugPrint(level, args)
00023 extern void DebugPrint(int level, char *format, ...);
00024 #endif
00025
00026 #else
00027
00028 #ifndef _DEBUG
00029 #define DPRINTF //
00030 #else
00031 #define DPRINTF DebugPrint
00032 extern void DebugPrint(int level, char *format, ...);
00033 #endif
00034
00035 #endif // __GNUC__
00036
00037 #endif // DPRINTF
00038
00039 extern void SetDebugVerbosity(int);
00040 extern int GetDebugVerbosity();
00041
00042 #endif // _DEBUG_H_
00043