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.

36 lines
844 B

  1. /***************************************************************************\
  2. * Module Name: debug.h
  3. *
  4. * Commonly used debugging macros.
  5. *
  6. * Copyright (c) 1992-1996 Microsoft Corporation
  7. \***************************************************************************/
  8. #if DBG
  9. VOID
  10. DebugPrint(
  11. LONG 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. #else
  19. //
  20. // The statement "0;" should always be optimized out. Defining these
  21. // this way will allow us to use statements such as
  22. // portdata = DISPDBG((0,msg)), inp(x) even on free builds.
  23. // This is a great way to use DISPDBGs in the "read" or "input" macros.
  24. //
  25. #define DISPDBG(arg) 0
  26. #define RIP(x) 0
  27. #define ASSERTDD(x, y) 0
  28. #endif