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