home *** CD-ROM | disk | FTP | other *** search
/ Cutting-Edge 3D Game Programming with C++ / CE3DC++.ISO / TOOLS / VFW / VFWDK / COMMON.H_ / COMMON.bin
Encoding:
Text File  |  1993-11-19  |  1.7 KB  |  53 lines

  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) 1992, 1993  Microsoft Corporation.  All Rights Reserved.
  9.  *
  10.  *  COMMON.H
  11.  *
  12.  *  MCI ViSCA Device Driver
  13.  *
  14.  *  Description:
  15.  *
  16.  *      Debugging macros.
  17.  *
  18.  ***************************************************************************/
  19. #ifdef DEBUG
  20.  
  21. #define DPF                _DPF1
  22. void FAR cdecl          _DPF1(int iDebugMask, LPSTR szFormat, ...);
  23. void FAR PASCAL         viscaPacketPrint(LPSTR lpstrData, UINT cbData);
  24. #define DOUTSTR(a)      OutputDebugString(a)
  25. #define DOUTSTRC(a, b)  { if(a) OutputDebugString(b); }
  26.  
  27. #define DBG_ERROR       0x00    // Errors always get printed if at least one.
  28. #define DBG_MEM         0x01
  29. #define DBG_MCI         0x02
  30. #define DBG_COMM        0x04
  31. #define DBG_QUEUE       0x08
  32. #define DBG_SYNC        0x10
  33. #define DBG_TASK        0x20
  34. #define DBG_CONFIG      0x40
  35.  
  36. #define DBG_ALL         0xff
  37. #define DBG_NONE        0x00    // This only prints the errors out.
  38.  
  39. // Use DBGMASK_CURRENT to specify things like (DBG_MEM | DBG_QUEUE)
  40. #define DBGMASK_CURRENT    (DBG_CONFIG | DBG_MEM | DBG_MCI | DBG_COMM | DBG_TASK)
  41.  
  42. #define DF(a, b)        if(a & DBGMASK_CURRENT) { b;}
  43.  
  44. #else
  45. #define DF(a, b)                    / ## /
  46. #define DOUTSTR(a)                  / ## /
  47. #define DPF                            / ## /
  48. #define viscaPacketPrint(a, b)      / ## /
  49. #define DOUTSTRC(a, b)               / ## /
  50.  
  51. #endif
  52.  
  53.