home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / mmcaps / debug.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  68 lines

  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.  
  23. #ifndef _INC_DEBUG
  24. #define _INC_DEBUG
  25. #ifdef __cplusplus
  26. extern "C"
  27. {
  28. #endif
  29.  
  30. //
  31. //  
  32. //
  33. //
  34. //
  35. #define DEBUG_SECTION       "Debug"         // section name for 
  36. #define DEBUG_MODULE_NAME   "MMCAPS"        // key name and prefix for output
  37. #define DEBUG_MAX_LINE_LEN  255             // max line length (bytes)
  38.  
  39.  
  40. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  41. //
  42. //
  43. //
  44. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  45.  
  46. #ifdef DEBUG
  47.     BOOL WINAPI DbgEnable(BOOL fEnable);
  48.     UINT WINAPI DbgSetLevel(UINT uLevel);
  49.     UINT WINAPI DbgInitialize(BOOL fEnable);
  50.  
  51.     void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  52.  
  53.     #define DPF      dprintf
  54. #else
  55.     #define DbgEnable(x)        FALSE
  56.     #define DbgSetLevel(x)      0
  57.     #define DbgInitialize(x)    0
  58.  
  59.     #pragma warning(disable:4002)
  60.     #define DPF()
  61. #endif
  62.  
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif  // _INC_DEBUG
  68.