debug.h 621 B

123456789101112131415161718192021222324252627
  1. #include <e32std.h>
  2. #define __DEBUG_PRINT_C
  3. #define __DEBUG_PRINT_FILE
  4. #if defined(__DEBUG_PRINT) || defined(__WINS__)
  5. #include <e32svr.h> // RDebug
  6. #ifdef __DEBUG_PRINT_FILE
  7. void debugPrintFile(TRefByValue<const TDesC> aFmt, ...);
  8. #define DEBUGPRINT debugPrintFile
  9. #else
  10. #define DEBUGPRINT RDebug::Print
  11. #endif
  12. TDesC* DO_CONV(const char* s);
  13. #ifdef __DEBUG_PRINT_C
  14. #ifdef __cplusplus
  15. extern "C"
  16. #endif
  17. void lprintf(char *format, ...);
  18. #endif
  19. #else
  20. #define DEBUGPRINT(x...)
  21. #undef __DEBUG_PRINT_C
  22. #undef __DEBUG_PRINT_FILE
  23. #endif
  24. void ExceptionHandler(TExcType exc);