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