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.

38 lines
779 B

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