home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2001 September / PC-WELT 9-2001.ISO / software / hw / brennen / flask_src.exe / Audio / AC3 / AC3Dec / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-06  |  1.0 KB  |  38 lines

  1. /*
  2.  *
  3.  * debug.h
  4.  *
  5.  *    Copyright (C) Aaron Holtzman - May 1999
  6.  *
  7.  *  This file is part of ac3dec, a free Dolby AC-3 stream decoder.
  8.  *    
  9.  *  ac3dec is free software; you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation; either version 2, or (at your option)
  12.  *  any later version.
  13.  *   
  14.  *  ac3dec is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *  GNU General Public License for more details.
  18.  *   
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with GNU Make; see the file COPYING.  If not, write to
  21.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  22.  *
  23.  */
  24.  
  25. int debug_is_on(void);
  26.  
  27. #ifdef __GNUC__
  28. #define dprintf(format,args...)\
  29. {\
  30.     if (debug_is_on())\
  31.     {\
  32.         fprintf(stderr,format,## args);\
  33.     }\
  34. }
  35. #else
  36. void dprintf(char fmt[],...);
  37. #endif
  38.