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 / mciapp / debug.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  66 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. //  History:
  17. //      11/23/92    created. 
  18. //
  19. //==========================================================================;
  20.  
  21. #ifndef _INC_DEBUG
  22. #define _INC_DEBUG
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27.  
  28. //
  29. //  
  30. //
  31. //
  32. //
  33. #define DEBUG_SECTION       "Debug"         // section name for 
  34. #define DEBUG_MODULE_NAME   "MCIAPP"        // key name and prefix for output
  35. #define DEBUG_MAX_LINE_LEN  255             // max line length (bytes)
  36.  
  37.  
  38. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  39. //
  40. //
  41. //
  42. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  43.  
  44. #ifdef DEBUG
  45.     BOOL WINAPI DbgEnable(BOOL fEnable);
  46.     UINT WINAPI DbgSetLevel(UINT uLevel);
  47.     UINT WINAPI DbgInitialize(BOOL fEnable);
  48.  
  49.     void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  50.  
  51.     #define DPF      dprintf
  52. #else
  53.     #define DbgEnable(x)        FALSE
  54.     #define DbgSetLevel(x)      0
  55.     #define DbgInitialize(x)    0
  56.  
  57.     #pragma warning(disable:4002)
  58.     #define DPF()
  59. #endif
  60.  
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif  // _INC_DEBUG
  66.