Source code of Windows XP (NT5)
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.

45 lines
822 B

  1. //-------------------------------------------------------------------------------//
  2. //
  3. // Desktops -
  4. //
  5. // File - Dbg.h. Debugging MACROS
  6. //
  7. // Created - Oct 1996
  8. // Martin Holladay (a-martih)
  9. //
  10. // Release - NT Resource Kit December 1996 Update Release
  11. //
  12. //--------------------------------------------------------------------------------//
  13. #ifdef _DEBUG
  14. //
  15. // Debug
  16. //
  17. #include "stdio.h"
  18. //
  19. // Debug
  20. //
  21. #define DBG_INIT() (dbgFP = fopen("C:\\TEMP\\Desktops.Dbg", "w+")); \
  22. (fclose(dbgFP))
  23. #define DBG_CLOSE() ((void)0)
  24. #define DBG_TRACE(c) (dbgFP = fopen("C:\\TEMP\\Desktops.Dbg", "a")); \
  25. (fputs(c, dbgFP)); \
  26. (fclose(dbgFP))
  27. #else
  28. //
  29. // Release
  30. //
  31. #define DBG_INIT() ((void)0)
  32. #define DBG_CLOSE() ((void)0)
  33. #define DBG_TRACE(c) ((void)0)
  34. #define DBG_TRACEW(c) ((void)0)
  35. #endif