debug.h

Go to the documentation of this file.
00001 
00024 #ifndef _DEBUG_H
00025 #define _DEBUG_H
00026 
00027 #if defined(_DEBUG) || defined(_DEBUG_CONSOLE)
00028 # ifdef _DEBUG_CONSOLE
00029 #  define open_log(path) _open_log(path, true)
00030 # else
00031 #  define open_log(path) _open_log(path, false)
00032 # endif // _DEBUG_CONSOLE
00033 # define close_log() _close_log()
00034 # define dll_init_log(x) _dll_init_log(x)
00035 # define plog _log
00036 #else
00037 
00043 # define open_log(path)
00044 # define close_log()
00045 # define dll_init_log(x)
00046 # define plog _logfoo
00047 
00048 #endif // _DEBUG
00049 
00061 void _open_log(const char* path, bool console);
00062 
00066 void _close_log();
00067 
00075 void _log(const char *format, ...);
00076 
00083 void _logfoo(const char *format, ...);
00084 
00092 void _dll_init_log(void *dll);
00093 
00094 #endif // _DEBUG_H
00095 

Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6