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.

69 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. dbg.h
  5. Abstract:
  6. debug macros
  7. Environment:
  8. Kernel & user mode
  9. Revision History:
  10. 6-20-99 : created
  11. --*/
  12. #ifndef __DBG_H__
  13. #define __DBG_H__
  14. #define HIDIR_TAG 'BdiH' //"HidB"
  15. #if DBG
  16. /**********
  17. DUBUG
  18. ***********/
  19. //
  20. // This Breakpoint means we either need to test the code path
  21. // somehow or the code is not implemented. ie either case we
  22. // should not have any of these when the driver is finished
  23. // and tested
  24. //
  25. #define HIR_TRAP() {\
  26. DbgPrint("<HB TRAP> %s, line %d\n", __FILE__, __LINE__);\
  27. DbgBreakPoint();\
  28. }
  29. ULONG
  30. _cdecl
  31. HidIrKdPrintX(
  32. ULONG l,
  33. PCH Format,
  34. ...
  35. );
  36. #define HidIrKdPrint(_x_) HidIrKdPrintX _x_
  37. #else
  38. /**********
  39. RETAIL
  40. ***********/
  41. // debug macros for retail build
  42. #define HIR_TRAP()
  43. #define HidIrKdPrint(_x_)
  44. #endif /* DBG */
  45. #endif /* __DBG_H__ */