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.

56 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1994-7 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. This file contains debugging macros for the webdav client.
  7. Author:
  8. Andy Herron (andyhe) 30-Mar-1999
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. extern WCHAR DavClientDisplayName[MAX_PATH];
  14. #if DBG
  15. extern ULONG DavClientDebugFlag;
  16. //
  17. // The Debug flags.
  18. //
  19. #define DEBUG_DEBUG 0x00000001 // General debugging.
  20. #define DEBUG_ERRORS 0x00000002 // Hard error.
  21. #define DEBUG_MISC 0x00000004 // Misc info.
  22. #define DEBUG_ENTRY 0x00000008 // Function entry.
  23. #define DEBUG_EXIT 0x00000010 // Function exit.
  24. #define IF_DEBUG(flag) if (DavClientDebugFlag & (DEBUG_ ## flag))
  25. #define IF_DEBUG_PRINT(flag, args) { \
  26. if (DavClientDebugFlag & flag) { \
  27. DbgPrint args; \
  28. } \
  29. }
  30. #else
  31. #define IF_DEBUG(flag) if (0)
  32. #define IF_DEBUG_PRINT(flag, args)
  33. #endif