PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/native/external/espeak/src/debug.h

http://eyes-free.googlecode.com/
C++ Header | 26 lines | 19 code | 6 blank | 1 comment | 0 complexity | 56ff9d5cc866888ee3df45cb6a6e33aa MD5 | raw file
 1#ifndef DEBUG_H
 2#define DEBUG_H
 3
 4//#define DEBUG_ENABLED
 5
 6#ifdef DEBUG_ENABLED
 7#define ENTER(text) debug_enter(text)
 8#define SHOW(format,...) debug_show(format,__VA_ARGS__);
 9#define SHOW_TIME(text) debug_time(text);
10extern void debug_enter(const char* text);
11extern void debug_show(const char* format,...);
12extern void debug_time(const char* text);
13
14#else
15
16#ifdef PLATFORM_WINDOWS
17#define SHOW(format)   // VC6 doesn't allow "..."
18#else
19#define SHOW(format,...)
20#endif
21#define SHOW_TIME(text)
22#define ENTER(text)
23#endif
24
25
26#endif