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.

44 lines
1.1 KiB

  1. #pragma once
  2. //==========================================================================;
  3. //
  4. // WDM Video Decoder debug tools
  5. //
  6. // $Date: 05 Aug 1998 11:22:36 $
  7. // $Revision: 1.0 $
  8. // $Author: Tashjian $
  9. //
  10. // $Copyright: (c) 1997 - 1998 ATI Technologies Inc. All Rights Reserved. $
  11. //
  12. //==========================================================================;
  13. #ifdef DEBUG
  14. #include "debugdef.h"
  15. #ifdef _X86_
  16. #define TRAP() __asm int 3
  17. #else
  18. #define TRAP() KdBreakPoint()
  19. #endif
  20. extern "C" ULONG g_DebugLevel;
  21. #define DBGPRINTF(x) {KdPrint(x);}
  22. #define DBGERROR(x) {KdPrint((DBG_COMPONENT)); KdPrint(x);}
  23. #define DBGWARN(x) {if (g_DebugLevel >= 1) {KdPrint((DBG_COMPONENT)); KdPrint(x);}}
  24. #define DBGINFO(x) {if (g_DebugLevel >= 2) {KdPrint((DBG_COMPONENT)); KdPrint(x);}}
  25. #define DBGTRACE(x) {if (g_DebugLevel >= 3) {KdPrint((DBG_COMPONENT)); KdPrint(x);}}
  26. #else
  27. #define TRAP()
  28. #define DBGPRINTF(x)
  29. #define DBGERROR(x)
  30. #define DBGWARN(x)
  31. #define DBGINFO(x)
  32. #define DBGTRACE(x)
  33. #endif