Source code of Windows XP (NT5)
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.

32 lines
652 B

  1. /***************************************************************************\
  2. * Module Name: debug.h
  3. *
  4. * Commonly used debugging macros.
  5. *
  6. * Copyright (c) 1992-1995 Microsoft Corporation
  7. \***************************************************************************/
  8. #if DBG
  9. VOID
  10. DebugPrint(
  11. ULONG DebugPrintLevel,
  12. PCHAR DebugMessage,
  13. ...
  14. );
  15. #define DISPDBG(arg) DebugPrint arg
  16. #define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
  17. #define ASSERTDD(x, y) if (!(x)) RIP (y)
  18. #define STATEDBG(level)
  19. #define LOGDBG(arg)
  20. #else
  21. #define DISPDBG(arg)
  22. #define RIP(x)
  23. #define ASSERTDD(x, y)
  24. #define STATEDBG(level)
  25. #define LOGDBG(arg)
  26. #endif