Navit SVN

/work/compile/navit/src/navit/support/espeak/debug.h

00001 #ifndef DEBUG_H
00002 #define DEBUG_H
00003 
00004 //#define DEBUG_ENABLED
00005 
00006 #ifdef DEBUG_ENABLED
00007 #define ENTER(text) debug_enter(text)
00008 #define SHOW(format,...) debug_show(format,__VA_ARGS__);
00009 #define SHOW_TIME(text) debug_time(text);
00010 extern void debug_enter(const char* text);
00011 extern void debug_show(const char* format,...);
00012 extern void debug_time(const char* text);
00013 
00014 #else
00015 
00016 #ifdef PLATFORM_WINDOWS
00017 #define SHOW(format)   // VC6 doesn't allow "..."
00018 #else
00019 #define SHOW(format,...)
00020 #endif
00021 #define SHOW_TIME(text)
00022 #define ENTER(text)
00023 #endif
00024 
00025 
00026 #endif