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.

42 lines
982 B

  1. /***************************************************************************\
  2. *
  3. * *******************
  4. * * GDI SAMPLE CODE *
  5. * *******************
  6. *
  7. * Module Name: debug.h
  8. *
  9. * Commonly used debugging macros.
  10. *
  11. * Copyright (c) 1992-1998 Microsoft Corporation
  12. \***************************************************************************/
  13. extern
  14. VOID
  15. DebugPrint(
  16. LONG DebugPrintLevel,
  17. PCHAR DebugMessage,
  18. ...
  19. );
  20. #if DBG
  21. VOID DebugLog(LONG, CHAR*, ...);
  22. #define DISPDBG(arg) DebugPrint arg
  23. #define STATEDBG(level) DebugState(level)
  24. #define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
  25. #define ASSERTDD(x, y) if (!(x)) RIP (y)
  26. // If we are not in a debug environment, we want all of the debug
  27. // information to be stripped out.
  28. #else
  29. #define DISPDBG(arg)
  30. #define STATEDBG(level)
  31. #define LOGDBG(arg)
  32. #define RIP(x)
  33. #define ASSERTDD(x, y)
  34. #endif