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.

88 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. rtrdbg.h
  5. Abstract:
  6. This module contains the debug utilities definitions
  7. Author:
  8. Stefan Solomon 03/03/1995
  9. Revision History:
  10. --*/
  11. #ifndef _RTRDBG_
  12. #define _RTRDBG_
  13. extern HANDLE RMEventLogHdl;
  14. extern DWORD RMEventLogMask;
  15. #define IF_LOG(Event) \
  16. if ((RMEventLogHdl!=NULL) && ((Event&RMEventLogMask)==Event))
  17. #define INIT_TRACE 0x00010000
  18. #define ADAPTER_TRACE 0x00020000
  19. #define INTERFACE_TRACE 0x00040000
  20. #define BIND_TRACE 0x00080000
  21. #define RPAL_TRACE 0x00100000
  22. #define CONNREQ_TRACE 0x00200000
  23. #define ROUTE_TRACE 0x00400000
  24. #define IPXCPIF_TRACE 0x00800000
  25. #define UPDATE_TRACE 0x01000000
  26. #define ROUTER_ALERT 0x80000000
  27. #if DBG
  28. extern DWORD DbgLevel;
  29. #define DEBUG if ( TRUE )
  30. #define IF_DEBUG(flag) if (DbgLevel & (DEBUG_ ## flag))
  31. VOID
  32. SsDbgInitialize(VOID);
  33. VOID
  34. SsAssert(
  35. IN PVOID FailedAssertion,
  36. IN PVOID FileName,
  37. IN ULONG LineNumber
  38. );
  39. VOID
  40. SsPrintf (
  41. char *Format,
  42. ...
  43. );
  44. #define SS_DBGINITIALIZE SsDbgInitialize()
  45. #define SS_PRINT(args) SsPrintf args
  46. #define SS_ASSERT(exp) if (!(exp)) SsAssert( #exp, __FILE__, __LINE__ )
  47. #else
  48. #define DEBUG if ( FALSE )
  49. #define IF_DEBUG(flag) if (FALSE)
  50. #define SS_DBGINITIALIZE
  51. #define SS_PRINT(args)
  52. #define SS_ASSERT(exp)
  53. #endif // DBG
  54. //*** Definitions to enable debug printing
  55. #define DEFAULT_DEBUG 0x0FFFF
  56. #endif // ndef _RTRDBG_