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 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2007 to 2009 by Jonathan Duddington
  3. * email: [email protected]
  4. * Copyright (C) 2015 Reece H. Dunn
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef DEBUG_H
  20. #define DEBUG_H
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25. #ifdef DEBUG_ENABLED
  26. #define ENTER(text) debug_enter(text)
  27. #define SHOW(format,...) debug_show(format,__VA_ARGS__);
  28. #define SHOW_TIME(text) debug_time(text);
  29. extern void debug_enter(const char* text);
  30. extern void debug_show(const char* format,...);
  31. extern void debug_time(const char* text);
  32. #else
  33. #ifdef NO_VARIADIC_MACROS
  34. #define SHOW(format) // VC6 doesn't allow "..."
  35. #else
  36. #define SHOW(format,...)
  37. #endif
  38. #define SHOW_TIME(text)
  39. #define ENTER(text)
  40. #endif
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif