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.

115 lines
3.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. debug.h
  7. This file contains a number of debug-dependent definitions for
  8. the FTPD Service.
  9. FILE HISTORY:
  10. KeithMo 07-Mar-1993 Created.
  11. */
  12. #ifndef _DEBUG_H_
  13. #define _DEBUG_H_
  14. #if DBG
  15. //
  16. // Debug output control flags.
  17. //
  18. #define FTPD_DEBUG_ENTRYPOINTS 0x00000001L // DLL entrypoints
  19. #define FTPD_DEBUG_OPEN 0x00000002L // OpenPerformanceData
  20. #define FTPD_DEBUG_CLOSE 0x00000004L // CollectPerformanceData
  21. #define FTPD_DEBUG_COLLECT 0x00000008L // ClosePerformanceData
  22. // #define FTPD_DEBUG_ 0x00000010L
  23. // #define FTPD_DEBUG_ 0x00000020L
  24. // #define FTPD_DEBUG_ 0x00000040L
  25. // #define FTPD_DEBUG_ 0x00000080L
  26. // #define FTPD_DEBUG_ 0x00000100L
  27. // #define FTPD_DEBUG_ 0x00000200L
  28. // #define FTPD_DEBUG_ 0x00000400L
  29. // #define FTPD_DEBUG_ 0x00000800L
  30. // #define FTPD_DEBUG_ 0x00001000L
  31. // #define FTPD_DEBUG_ 0x00002000L
  32. // #define FTPD_DEBUG_ 0x00004000L
  33. // #define FTPD_DEBUG_ 0x00008000L
  34. // #define FTPD_DEBUG_ 0x00010000L
  35. // #define FTPD_DEBUG_ 0x00020000L
  36. // #define FTPD_DEBUG_ 0x00040000L
  37. // #define FTPD_DEBUG_ 0x00080000L
  38. // #define FTPD_DEBUG_ 0x00100000L
  39. // #define FTPD_DEBUG_ 0x00200000L
  40. // #define FTPD_DEBUG_ 0x00400000L
  41. // #define FTPD_DEBUG_ 0x00800000L
  42. // #define FTPD_DEBUG_ 0x01000000L
  43. // #define FTPD_DEBUG_ 0x02000000L
  44. // #define FTPD_DEBUG_ 0x04000000L
  45. // #define FTPD_DEBUG_ 0x08000000L
  46. // #define FTPD_DEBUG_ 0x10000000L
  47. // #define FTPD_DEBUG_ 0x20000000L
  48. #define FTPD_DEBUG_OUTPUT_TO_DEBUGGER 0x40000000L
  49. // #define FTPD_DEBUG_ 0x80000000L
  50. extern DWORD FtpdDebug;
  51. #define IF_DEBUG(flag) if ( (FtpdDebug & FTPD_DEBUG_ ## flag) != 0 )
  52. //
  53. // Debug output function.
  54. //
  55. VOID FtpdPrintf( CHAR * pszFormat,
  56. ... );
  57. #define FTPD_PRINT(args) FtpdPrintf args
  58. //
  59. // Assert & require.
  60. //
  61. VOID FtpdAssert( VOID * pAssertion,
  62. VOID * pFileName,
  63. LONG nLineNumber );
  64. #define FTPD_ASSERT(exp) if (!(exp)) FtpdAssert( #exp, __FILE__, __LINE__ )
  65. #define FTPD_REQUIRE FTPD_ASSERT
  66. #else // !DBG
  67. //
  68. // No debug output.
  69. //
  70. #define IF_DEBUG(flag) if (0)
  71. //
  72. // Null debug output function.
  73. //
  74. #define FTPD_PRINT(args)
  75. //
  76. // Null assert & require.
  77. //
  78. #define FTPD_ASSERT(exp)
  79. #define FTPD_REQUIRE(exp) ((VOID)(exp))
  80. #endif // DBG
  81. #endif // _DEBUG_H_