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.

60 lines
1.7 KiB

  1. //****************************************************************************
  2. //
  3. // Module: ULS.DLL
  4. // File: debug.h
  5. // Content: This file contains the debug-related declaration
  6. // History:
  7. // Tue 23-Feb-1993 14:08:25 -by- Viroon Touranachun [viroont]
  8. //
  9. //****************************************************************************
  10. #ifndef _ULSDBG_H_
  11. #define _ULSDBG_H_
  12. #include <confdbg.h>
  13. //****************************************************************************
  14. // Macros
  15. //****************************************************************************
  16. #ifdef DEBUG
  17. #define DM_ERROR 0x0000 // Error /* ;Internal */
  18. #define DM_WARNING 0x0001 // Warning /* ;Internal */
  19. #define DM_TRACE 0x0002 // Trace messages
  20. #define DM_REFCOUNT 0x0003 //
  21. #define ZONE_KA 0x0004
  22. #define ZONE_FILTER 0x0005
  23. #define ZONE_REQ 0x0006
  24. #define ZONE_RESP 0x0007
  25. #define ZONE_CONN 0x0008
  26. extern HDBGZONE ghZoneUls;
  27. UINT DbgUlsTrace(LPCTSTR, ...);
  28. VOID DbgMsgUls(ULONG uZone, CHAR *pszFormat, ...);
  29. #define DPRINTF(sz) DbgUlsTrace(sz)
  30. #define DPRINTF1(sz,x) DbgUlsTrace(sz, x)
  31. #define DPRINTF2(sz,x,y) DbgUlsTrace(sz, x, y)
  32. #define DBG_REF (!F_ZONE_ENABLED(ghZoneUls, DM_REFCOUNT)) ? 0 : DbgUlsTrace
  33. #define MyAssert(expr) ASSERT(expr)
  34. #define MyDebugMsg(s) DbgMsgUls s
  35. #else // DEBUG
  36. #define DPRINTF(sz)
  37. #define DPRINTF1(sz,x)
  38. #define DPRINTF2(sz,x,y)
  39. inline void WINAPI DbgUlsTrace(LPCTSTR, ...) { }
  40. #define DBG_REF 1 ? (void)0 : ::DbgUlsTrace
  41. #define MyAssert(expr)
  42. #define MyDebugMsg(s)
  43. #endif // DEBUG
  44. #endif //_ULSDBG_H_