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.

65 lines
1.7 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1993-1996 Microsoft Corporation
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // debug.h
  13. //
  14. // Description:
  15. // This file contains definitions for DEBUG builds; all debugging
  16. // instructions are #define-d to nothing if DEBUG is not defined.
  17. //
  18. //
  19. //==========================================================================;
  20. #ifndef _INC_DEBUG
  21. #define _INC_DEBUG
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. //
  27. //
  28. //
  29. //
  30. //
  31. #define DEBUG_SECTION "Debug" // section name for
  32. #define DEBUG_MODULE_NAME "MSG711" // key name and prefix for output
  33. #define DEBUG_MAX_LINE_LEN 255 // max line length (bytes)
  34. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  35. //
  36. //
  37. //
  38. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  39. #ifdef DEBUG
  40. BOOL WINAPI DbgEnable(BOOL fEnable);
  41. UINT WINAPI DbgSetLevel(UINT uLevel);
  42. UINT WINAPI DbgInitialize(BOOL fEnable);
  43. void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  44. #define DPF dprintf
  45. #else
  46. #define DbgEnable(x) FALSE
  47. #define DbgSetLevel(x) 0
  48. #define DbgInitialize(x) 0
  49. #pragma warning(disable:4002)
  50. #define DPF()
  51. #endif
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif // _INC_DEBUG