Leaked source code of windows server 2003
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.

44 lines
1.1 KiB

  1. #ifndef _DEBUG_H_
  2. #define _DEBUG_H_
  3. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  4. #ifdef _DEBUG // { _DEBUG
  5. extern HDBGZONE ghDbgZoneCap;
  6. int WINAPI CapDbgPrintf ( LPTSTR lpszFormat, ... );
  7. #define ZONE_INIT (GETMASK(ghDbgZoneCap) & 0x0001)
  8. #define ZONE_STREAMING (GETMASK(ghDbgZoneCap) & 0x0002)
  9. #define ZONE_CALLBACK (GETMASK(ghDbgZoneCap) & 0x0004)
  10. #define ZONE_DIALOGS (GETMASK(ghDbgZoneCap) & 0x0008)
  11. #define ZONE_CALLS (GETMASK(ghDbgZoneCap) & 0x0010)
  12. #ifndef DEBUGMSG // { DEBUGMSG
  13. #define DEBUGMSG(z,s) ( (z) ? (CapDbgPrintf s ) : 0)
  14. #endif // } DEBUGMSG
  15. #ifndef FX_ENTRY // { FX_ENTRY
  16. #define FX_ENTRY(s) static TCHAR _this_fx_ [] = (s);
  17. #define _fx_ ((LPTSTR) _this_fx_)
  18. #endif // } FX_ENTRY
  19. #define ERRORMESSAGE(m) (CapDbgPrintf m)
  20. #else // }{ _DEBUG
  21. #ifndef FX_ENTRY // { FX_ENTRY
  22. #define FX_ENTRY(s)
  23. #endif // } FX_ENTRY
  24. #ifndef DEBUGMSG // { DEBUGMSG
  25. #define DEBUGMSG(z,s)
  26. #define ERRORMESSAGE(m)
  27. #endif // } DEBUGMSG
  28. #define _fx_
  29. #define ERRORMESSAGE(m)
  30. #endif // } _DEBUG
  31. #include <poppack.h> /* End byte packing */
  32. #endif // _DEBUG_H_