]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/debug.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / debug.h
CommitLineData
ef416fc2 1/*
bc44d920 2 * "$Id: debug.h 6649 2007-07-11 21:46:42Z mike $"
ef416fc2 3 *
4 * Debugging macros for the Common UNIX Printing System (CUPS).
5 *
bc44d920 6 * Copyright 2007 by Apple Inc.
ef416fc2 7 * Copyright 1997-2005 by Easy Software Products.
8 *
9 * These coded instructions, statements, and computer programs are the
bc44d920 10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 14 *
15 * This file is subject to the Apple OS-Developed Software exception.
16 */
17
18#ifndef _CUPS_DEBUG_H_
19# define _CUPS_DEBUG_H_
20
21/*
22 * Include necessary headers...
23 */
24
25# include <stdio.h>
26
27/*
28 * The debug macros are used if you compile with DEBUG defined.
29 *
30 * Usage:
31 *
32 * DEBUG_puts("string")
33 * DEBUG_printf(("format string", arg, arg, ...));
34 *
35 * Note the extra parenthesis around the DEBUG_printf macro...
36 */
37
38# ifdef DEBUG
39# define DEBUG_puts(x) puts(x)
40# define DEBUG_printf(x) printf x
41# else
42# define DEBUG_puts(x)
43# define DEBUG_printf(x)
44# endif /* DEBUG */
45
46#endif /* !_CUPS_DEBUG_H_ */
47
48/*
bc44d920 49 * End of "$Id: debug.h 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 50 */