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.

48 lines
1.1 KiB

  1. //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
  2. //
  3. // debug.cpp
  4. //
  5. // Debug file. This file makes use to the shell debugging macros and
  6. // functions defined in shell\inc\debug.h
  7. //
  8. // History:
  9. //
  10. // 3/16/97 edwardp Created.
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. #include "stdinc.h"
  14. //
  15. // Define strings used by debug.h. Declaring DECLARE_DEBUG causes debug.h to
  16. // define its c objects here.
  17. //
  18. #define SZ_DEBUGINI "shellext.ini"
  19. #define SZ_DEBUGSECTION "cdfview"
  20. #define SZ_MODULE "CDFVIEW"
  21. #define DECLARE_DEBUG
  22. #include <ccstock.h> // TEXTW macro used in debug.h
  23. #include <debug.h>
  24. #ifdef UNIX
  25. #ifdef DEBUG
  26. extern "C" void _DebugAssertMsgUnix(char *msg, char *fileName, int line)
  27. {
  28. printf("CDFVIEW: asrt(%s) %s, l %d\n", msg, fileName, line);
  29. }
  30. extern "C" void _DebugMsgUnix(int i, const char *s, ...)
  31. {
  32. char buffer[1024];
  33. va_list ap;
  34. va_start(ap,s);
  35. vsprintf(buffer,s,ap);
  36. printf(buffer); printf("\n");
  37. va_end(ap);
  38. }
  39. #endif /* DEBUG */
  40. #endif /* UNIX */