1*355b4669Sjacobs /* 2*355b4669Sjacobs * "$Id: debug.h 148 2006-04-25 16:54:17Z njacobs $ 3*355b4669Sjacobs * 4*355b4669Sjacobs * Debugging macros for the Common UNIX Printing System (CUPS). 5*355b4669Sjacobs * 6*355b4669Sjacobs * Copyright 1997-2005 by Easy Software Products. 7*355b4669Sjacobs * 8*355b4669Sjacobs * These coded instructions, statements, and computer programs are the 9*355b4669Sjacobs * property of Easy Software Products and are protected by Federal 10*355b4669Sjacobs * copyright law. Distribution and use rights are outlined in the file 11*355b4669Sjacobs * "LICENSE.txt" which should have been included with this file. If this 12*355b4669Sjacobs * file is missing or damaged please contact Easy Software Products 13*355b4669Sjacobs * at: 14*355b4669Sjacobs * 15*355b4669Sjacobs * Attn: CUPS Licensing Information 16*355b4669Sjacobs * Easy Software Products 17*355b4669Sjacobs * 44141 Airport View Drive, Suite 204 18*355b4669Sjacobs * Hollywood, Maryland 20636 USA 19*355b4669Sjacobs * 20*355b4669Sjacobs * Voice: (301) 373-9600 21*355b4669Sjacobs * EMail: cups-info@cups.org 22*355b4669Sjacobs * WWW: http://www.cups.org 23*355b4669Sjacobs * 24*355b4669Sjacobs * This file is subject to the Apple OS-Developed Software exception. 25*355b4669Sjacobs */ 26*355b4669Sjacobs 27*355b4669Sjacobs #ifndef _CUPS_DEBUG_H_ 28*355b4669Sjacobs #define _CUPS_DEBUG_H_ 29*355b4669Sjacobs 30*355b4669Sjacobs /* 31*355b4669Sjacobs * Include necessary headers... 32*355b4669Sjacobs */ 33*355b4669Sjacobs 34*355b4669Sjacobs # include <stdio.h> 35*355b4669Sjacobs 36*355b4669Sjacobs #ifdef __cplusplus 37*355b4669Sjacobs extern "C" { 38*355b4669Sjacobs #endif 39*355b4669Sjacobs 40*355b4669Sjacobs 41*355b4669Sjacobs /* 42*355b4669Sjacobs * The debug macros are used if you compile with DEBUG defined. 43*355b4669Sjacobs * 44*355b4669Sjacobs * Usage: 45*355b4669Sjacobs * 46*355b4669Sjacobs * DEBUG_puts("string") 47*355b4669Sjacobs * DEBUG_printf(("format string", arg, arg, ...)); 48*355b4669Sjacobs * 49*355b4669Sjacobs * Note the extra parenthesis around the DEBUG_printf macro... 50*355b4669Sjacobs */ 51*355b4669Sjacobs 52*355b4669Sjacobs # ifdef DEBUG 53*355b4669Sjacobs # define DEBUG_puts(x) puts(x) 54*355b4669Sjacobs # define DEBUG_printf(x) printf x 55*355b4669Sjacobs # else 56*355b4669Sjacobs # define DEBUG_puts(x) 57*355b4669Sjacobs # define DEBUG_printf(x) 58*355b4669Sjacobs # endif /* DEBUG */ 59*355b4669Sjacobs 60*355b4669Sjacobs #ifdef __cplusplus 61*355b4669Sjacobs } 62*355b4669Sjacobs #endif 63*355b4669Sjacobs 64*355b4669Sjacobs #endif /* !_CUPS_DEBUG_H_ */ 65*355b4669Sjacobs 66*355b4669Sjacobs /* 67*355b4669Sjacobs * End of "$Id: debug.h 148 2006-04-25 16:54:17Z njacobs $" 68*355b4669Sjacobs */ 69