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.

90 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name:
  4. dbgutil.h
  5. Abstract:
  6. This module declares the macros to wrap around DEBUG_PRINTS class
  7. defined in pudebug.h
  8. This is the exported header file, that the users are allowed to modify.
  9. If there are no custom definitions, please use the templated version
  10. in the root iisrearc\inc\dbgutil.h
  11. Author:
  12. Murali R. Krishnan (MuraliK) 22-Sept-1994
  13. --*/
  14. # ifndef _DBGUTIL_H_
  15. # define _DBGUTIL_H_
  16. // begin_user_modifiable
  17. //
  18. // Modify the following flags if necessary
  19. //
  20. # define DEFAULT_OUTPUT_FLAGS ( DbgOutputStderr | DbgOutputKdb )
  21. // end_user_modifiable
  22. //
  23. // include standard debug support
  24. //
  25. // note: define DEFAULT_OUTPUT_FLAGS before including pudebug.h
  26. //
  27. # include <pudebug.h>
  28. // begin_user_modifiable
  29. // Use the default constants from pudebug.h: 0x00000001 to 0x00000100
  30. //
  31. // Define the debugging constants as bit-flag values
  32. // Example: # define DEBUG_FOOBAR 0x00010000
  33. // Note: All debugging bit-values below 0x00001000 are reserved!
  34. //
  35. // If you add or change a flag, please update FlagTableWp
  36. // in core\common\dtflags\dtflags.c
  37. //
  38. # define DEBUG_DIRMON 0x00010000
  39. #if DBG
  40. //
  41. // handy trace macro
  42. //
  43. #define WpTrace(a, _b_) \
  44. do { \
  45. IF_DEBUG(##a) \
  46. { \
  47. PuDbgPrint _b_ ; \
  48. } \
  49. }while (0)
  50. #else // !DBG
  51. #define WpTrace(a, _b_) ((void) 0) /* do nothing */
  52. #endif
  53. // end_user_modifiable
  54. # endif /* _DBGUTIL_H_ */