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.4 KiB

  1. /******************************************************************************\
  2. *
  3. * $Workfile: debug.h $
  4. *
  5. * Commonly used debugging macros.
  6. *
  7. * Copyright (c) 1992-1995 Microsoft Corporation
  8. * Copyright (c) 1996 Cirrus Logic, Inc.
  9. *
  10. * $Log: S:/projects/drivers/ntsrc/display/debug.h_v $
  11. *
  12. * Rev 1.1 Oct 10 1996 15:36:34 unknown
  13. *
  14. *
  15. * Rev 1.1 12 Aug 1996 16:47:44 frido
  16. * Added NT 3.5x/4.0 auto detection.
  17. *
  18. \******************************************************************************/
  19. //#if DBG
  20. #if (DBG_STRESS_FAILURE || DBG)
  21. VOID
  22. DebugPrint(
  23. ULONG DebugPrintLevel,
  24. PCHAR DebugMessage,
  25. ...
  26. );
  27. VOID
  28. PerfPrint(
  29. ULONG PerfPrintLevel,
  30. PCHAR PerfMessage,
  31. ...
  32. );
  33. #define DISPDBG(arg) DebugPrint arg
  34. #define DISPPRF(arg) PerfPrint arg
  35. #if (NT_VERSION < 0x0400)
  36. #define RIP(x) { DebugPrint(0, x); DebugBreak(); }
  37. #else
  38. #define RIP(x) { DebugPrint(0, x); EngDebugBreak(); }
  39. #endif
  40. #define ASSERTDD(x, y) if (!(x)) RIP (y)
  41. #define STATEDBG(level) 0
  42. #define LOGDBG(arg) 0
  43. #else
  44. #define DISPDBG(arg) 0
  45. #define DISPPRF(arg) 0
  46. #define RIP(x) 0
  47. #define ASSERTDD(x, y) 0
  48. #define STATEDBG(level) 0
  49. #define LOGDBG(arg) 0
  50. #endif
  51. #define DUMPVAR(x,format_str) DISPDBG((0,#x" = "format_str,x));