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.

85 lines
1.4 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1994 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: ipxcpdbg.h
  7. //
  8. // Description: This module debug definitions for
  9. // the debug utilities
  10. //
  11. // Author: Stefan Solomon (stefans) Jan 10, 1994
  12. //
  13. // Revision History:
  14. //
  15. //***
  16. #ifndef _IPXCPDBG_
  17. #define _IPXCPDBG_
  18. #define PPPIF_TRACE 0x00010000
  19. #define OPTIONS_TRACE 0x00020000
  20. #define WANNET_TRACE 0x00040000
  21. #define RMIF_TRACE 0x00080000
  22. #define RASMANIF_TRACE 0x00100000
  23. #define IPXWANIF_TRACE 0x00200000
  24. #if DBG
  25. extern DWORD DbgLevel;
  26. #define DEBUG if ( TRUE )
  27. #define IF_DEBUG(flag) if (DbgLevel & (DEBUG_ ## flag))
  28. VOID
  29. SsDbgInitialize(VOID);
  30. VOID
  31. SsAssert(
  32. IN PVOID FailedAssertion,
  33. IN PVOID FileName,
  34. IN ULONG LineNumber
  35. );
  36. VOID
  37. SsPrintf (
  38. char *Format,
  39. ...
  40. );
  41. VOID
  42. SsResetDbgLogFile(VOID);
  43. #define SS_PRINT(args) SsPrintf args
  44. #define SS_ASSERT(exp) if (!(exp)) SsAssert( #exp, __FILE__, __LINE__ )
  45. #define SS_DBGINITIALIZE SsDbgInitialize()
  46. #define SS_RESETDBGLOGFILE SsResetDbgLogFile()
  47. #else
  48. #define DEBUG if ( FALSE )
  49. #define IF_DEBUG(flag) if (FALSE)
  50. #define SS_PRINT(args)
  51. #define SS_ASSERT(exp)
  52. #define SS_DBGINITIALIZE
  53. #define SS_RESETDBGLOGFILE()
  54. #endif // DBG
  55. //*** Definitions to enable debug printing
  56. #define DEFAULT_DEBUG 0x0FFFF
  57. #endif // ndef _IPXCPDBG_