debug.cpp
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\
  2. //
  3. // debug.cpp 
  4. //
  5. //   Debug file.  This file makes use to the shell debugging macros and
  6. //   functions defined in shellincdebug.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 %dn", 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 */