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.

30 lines
598 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 ASSERTVGA(x, y) if (!(x)) RIP (y)
  18. #else
  19. #define DISPDBG(arg)
  20. #define RIP(x)
  21. #define ASSERTVGA(x, y)
  22. #endif