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.

55 lines
2.0 KiB

  1. /*
  2. *************************************************************************
  3. * File: DEBUG.H
  4. *
  5. * Module: HID1394.SYS
  6. * HID (Human Input Device) minidriver for IEEE 1394 devices.
  7. *
  8. *
  9. * Author: ervinp
  10. *
  11. *************************************************************************
  12. */
  13. #define BAD_POINTER ((PVOID)0xFFFFFF00)
  14. #if DBG
  15. extern BOOLEAN dbgVerbose;
  16. extern BOOLEAN dbgTrapOnWarn;
  17. #define DBGBREAK \
  18. { \
  19. DbgPrint("'HID1394> Code coverage trap: file %s, line %d \n", __FILE__, __LINE__ ); \
  20. DbgBreakPoint(); \
  21. }
  22. #define DBGWARN(args_in_parens) \
  23. { \
  24. DbgPrint("'HID1394> *** WARNING *** (file %s, line %d)\n", __FILE__, __LINE__ ); \
  25. DbgPrint("' > "); \
  26. DbgPrint args_in_parens; \
  27. DbgPrint("\n"); \
  28. if (dbgTrapOnWarn){ \
  29. DbgBreakPoint(); \
  30. } \
  31. }
  32. #define DBGERR(args_in_parens) \
  33. { \
  34. DbgPrint("'HID1394> *** ERROR *** (file %s, line %d)\n", __FILE__, __LINE__ ); \
  35. DbgPrint("' > "); \
  36. DbgPrint args_in_parens; \
  37. DbgPrint("\n"); \
  38. DbgBreakPoint(); \
  39. }
  40. #define DBGOUT(args_in_parens) \
  41. { \
  42. DbgPrint("'HID1394> "); \
  43. DbgPrint args_in_parens; \
  44. DbgPrint("\n"); \
  45. }
  46. #else
  47. #define DBGBREAK
  48. #define DBGWARN(args_in_parens)
  49. #define DBGERR(args_in_parens)
  50. #define DBGOUT(args_in_parens)
  51. #endif