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.

66 lines
1.1 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. Debug infrastructure for this component.
  7. (currently inactive)
  8. Author:
  9. Jim Cavalaris (jamesca) 07-Mar-2000
  10. Environment:
  11. User-mode only.
  12. Revision History:
  13. 07-March-2000 jamesca
  14. Creation and initial implementation.
  15. --*/
  16. //
  17. // debug infrastructure
  18. //
  19. #if DBG
  20. #define DBGF_ERRORS DPFLTR_ERROR_LEVEL
  21. #define DBGF_WARNINGS DPFLTR_WARNING_LEVEL
  22. #define DBGF_TRACE DPFLTR_TRACE_LEVEL
  23. #define DBGF_INFO DPFLTR_INFO_LEVEL
  24. #define DBGF_REGISTRY DPFLTR_INFO_LEVEL
  25. VOID
  26. pSifDebugPrintEx(
  27. DWORD Level,
  28. PCTSTR Format,
  29. ... OPTIONAL
  30. );
  31. ULONG
  32. DebugPrint(
  33. IN ULONG Level,
  34. IN PCHAR Format,
  35. ...
  36. );
  37. #define DBGTRACE(x) pSifDebugPrintEx x
  38. #define MYASSERT(x) ASSERT(x)
  39. #else // !DBG
  40. #define DBGTRACE(x)
  41. #define MYASSERT(x)
  42. #endif // DBG