8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / lib / print / libhttp-core / common / debug.h
blobaebc790017f8299949524fb6974f6396731a6854
1 /*
2 * "$Id: debug.h 148 2006-04-25 16:54:17Z njacobs $
4 * Debugging macros for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2005 by Easy Software Products.
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:
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
27 #ifndef _CUPS_DEBUG_H_
28 #define _CUPS_DEBUG_H_
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * Include necessary headers...
36 # include <stdio.h>
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
44 * The debug macros are used if you compile with DEBUG defined.
46 * Usage:
48 * DEBUG_puts("string")
49 * DEBUG_printf(("format string", arg, arg, ...));
51 * Note the extra parenthesis around the DEBUG_printf macro...
54 # ifdef DEBUG
55 # define DEBUG_puts(x) puts(x)
56 # define DEBUG_printf(x) printf x
57 # else
58 # define DEBUG_puts(x)
59 # define DEBUG_printf(x)
60 # endif /* DEBUG */
62 #ifdef __cplusplus
64 #endif
66 #endif /* !_CUPS_DEBUG_H_ */
69 * End of "$Id: debug.h 148 2006-04-25 16:54:17Z njacobs $"