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.9 KiB

  1. #ifndef _XSDEBUG_
  2. #define _XSDEBUG_
  3. //
  4. // Debugging macros
  5. //
  6. #ifndef DBG
  7. #define DBG 0
  8. #endif
  9. #if !DBG
  10. #undef XSDBG
  11. #define XSDBG 0
  12. #else
  13. #ifndef XSDBG
  14. #define XSDBG 1
  15. #endif
  16. #endif
  17. #undef IF_DEBUG
  18. #if !XSDBG
  19. #define STATIC static
  20. #define DEBUG if (FALSE)
  21. #define IF_DEBUG(flag) if (FALSE)
  22. #else
  23. extern DWORD XsDebug;
  24. #define STATIC
  25. #define DEBUG if (TRUE)
  26. #define IF_DEBUG(flag) if (XsDebug & (DEBUG_ ## flag))
  27. #define DEBUG_INIT 0x00000001
  28. #define DEBUG_TRACE 0x00000002
  29. #define DEBUG_LPC 0x00000004
  30. #define DEBUG_CONVERT 0x00000008
  31. #define DEBUG_THREADS 0x00000010
  32. #define DEBUG_SHARE 0x00000020
  33. #define DEBUG_SESSION 0x00000040
  34. #define DEBUG_USE 0x00000080
  35. #define DEBUG_USER 0x00000100
  36. #define DEBUG_FILE 0x00000200
  37. #define DEBUG_SERVER 0x00000400
  38. #define DEBUG_WKSTA 0x00000800
  39. #define DEBUG_SERVICE 0x00001000
  40. #define DEBUG_CONNECTION 0x00002000
  41. #define DEBUG_CHAR_DEV 0x00004000
  42. #define DEBUG_MESSAGE 0x00008000
  43. #define DEBUG_ACCESS 0x00010000
  44. #define DEBUG_GROUP 0x00020000
  45. #define DEBUG_AUDIT 0x00040000
  46. #define DEBUG_ERROR 0x00080000
  47. #define DEBUG_PRINT 0x00100000
  48. #define DEBUG_STATISTICS 0x00200000
  49. #define DEBUG_TIME 0x00400000
  50. #define DEBUG_NETBIOS 0x00800000
  51. #define DEBUG_CONFIG 0x01000000
  52. #define DEBUG_LOGON 0x02000000
  53. #define DEBUG_PATH 0x04000000
  54. #define DEBUG_ACCOUNT 0x08000000
  55. #define DEBUG_BOGUS_APIS 0x10000000
  56. #define DEBUG_DESC_STRINGS 0x20000000
  57. #define DEBUG_API_ERRORS 0x40000000
  58. #define DEBUG_ERRORS 0x80000000
  59. #endif // else !XSDBG
  60. #endif // ndef _XSDEBUG_