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.

67 lines
1.5 KiB

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