eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debug.h 529B

1234567891011121314151617181920212223242526
  1. #ifndef DEBUG_H
  2. #define DEBUG_H
  3. //#define DEBUG_ENABLED
  4. #ifdef DEBUG_ENABLED
  5. #define ENTER(text) debug_enter(text)
  6. #define SHOW(format,...) debug_show(format,__VA_ARGS__);
  7. #define SHOW_TIME(text) debug_time(text);
  8. extern void debug_enter(const char* text);
  9. extern void debug_show(const char* format,...);
  10. extern void debug_time(const char* text);
  11. #else
  12. #ifdef PLATFORM_WINDOWS
  13. #define SHOW(format) // VC6 doesn't allow "..."
  14. #else
  15. #define SHOW(format,...)
  16. #endif
  17. #define SHOW_TIME(text)
  18. #define ENTER(text)
  19. #endif
  20. #endif