]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/debug.h
2 * "$Id: debug.h 7701 2008-06-27 22:37:23Z mike $"
4 * Debugging macros for the Common UNIX Printing System (CUPS).
6 * Copyright 2007-2008 by Apple Inc.
7 * Copyright 1997-2005 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
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/".
15 * This file is subject to the Apple OS-Developed Software exception.
18 #ifndef _CUPS_DEBUG_H_
19 # define _CUPS_DEBUG_H_
22 * The debug macros are used if you compile with DEBUG defined.
26 * DEBUG_puts("string")
27 * DEBUG_printf(("format string", arg, arg, ...));
29 * Note the extra parenthesis around the DEBUG_printf macro...
33 # define DEBUG_puts(x) _cups_debug_puts(x)
34 # define DEBUG_printf(x) _cups_debug_printf x
36 # define DEBUG_puts(x)
37 # define DEBUG_printf(x)
45 extern int _cups_debug_fd
;
46 extern void _cups_debug_printf(const char *format
, ...)
48 __attribute__ ((__format__ (__printf__
, 1, 2)))
51 extern void _cups_debug_puts(const char *s
);
54 #endif /* !_CUPS_DEBUG_H_ */
57 * End of "$Id: debug.h 7701 2008-06-27 22:37:23Z mike $".