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.

51 lines
1.2 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1995
  4. * TITLE: DEBUG.H
  5. * VERSION: 1.0
  6. * AUTHOR: jsenior
  7. * DATE: 10/28/1998
  8. *
  9. ********************************************************************************
  10. *
  11. * CHANGE LOG:
  12. *
  13. * DATE REV DESCRIPTION
  14. * ---------- ------- ----------------------------------------------------------
  15. * 10/28/1998 jsenior Original implementation.
  16. *
  17. *******************************************************************************/
  18. #ifndef __IRDADEBUG_H__
  19. #define __IRDADEBUG_H__
  20. void TRACE(LPCTSTR Format, ...);
  21. #if DBG
  22. #define LERROR 1
  23. #define LWARN 2
  24. #define LTRACE 3
  25. #define LINFO 4
  26. extern ULONG IRDA_Debug_Trace_Level;
  27. #define IRDA_Print(l, _x_) if ((l) <= IRDA_Debug_Trace_Level) \
  28. { TRACE (_T("IRCPL: ")); \
  29. TRACE _x_; \
  30. TRACE (_T("\n")); }
  31. #define IRWARN(_x_) IRDA_Print(LWARN, _x_)
  32. #define IRERROR(_x_) IRDA_Print(LERROR, _x_)
  33. #define IRTRACE(_x_) IRDA_Print(LTRACE, _x_)
  34. #define IRINFO(_x_) IRDA_Print(LINFO, _x_)
  35. #else // DBG
  36. #define IRDA_Print(l, _x_)
  37. #define IRWARN(_x_)
  38. #define IRERROR(_x_)
  39. #define IRTRACE(_x_)
  40. #define IRINFO(_x_)
  41. #endif // DBG
  42. #endif // __IRDADEBUG_H__