comparison src/debug.h @ 686:c0dda0ffb931

configure.in was rewritten: - uses PKG_CHECK_MODULES everywhere - added --enable-debug (enable debugging support) - added --enable-developer (developer mode, checks depreceated code ...) - removed obsoleted INCLUDES from Makefile.am Fixed src/debug.h (added glib.h). Fixed src/exiv2.c compilation with libexiv2 v0.15. Added src/trash.h to src/Makefile.am (fixed generating 'make dist').
author bruclik
date Mon, 19 May 2008 01:15:17 +0000
parents fbebf5cf4a55
children 4fe8f9656107
comparison
equal deleted inserted replaced
685:f20e7cebcb12 686:c0dda0ffb931
7 * This software is released under the GNU General Public License (GNU GPL). 7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information. 8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk! 9 * This software comes with no warranty of any kind, use at your own risk!
10 */ 10 */
11 11
12 #ifndef DEBUG_H 12 #ifndef _DEBUG_H
13 #define DEBUG_H 13 #define _DEBUG_H
14
15 #include <glib.h>
14 16
15 #define DOMAIN_DEBUG "debug" 17 #define DOMAIN_DEBUG "debug"
16 #define DOMAIN_INFO "info" 18 #define DOMAIN_INFO "info"
17 19
18 gint log_domain_printf(const char *domain, const gchar *format, ...) G_GNUC_PRINTF(2, 3); 20 gint log_domain_printf(const char *domain, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
19 #define log_printf(...) log_domain_printf(DOMAIN_INFO, __VA_ARGS__) 21 #define log_printf(...) log_domain_printf(DOMAIN_INFO, __VA_ARGS__)
20
21
22
23
24 #if 1 /* set to 0 to disable compilation of debugging code and related options */
25 # ifndef DEBUG
26 # define DEBUG 1
27 # endif
28 #endif
29 22
30 #ifdef DEBUG 23 #ifdef DEBUG
31 24
32 #define DEBUG_LEVEL_MIN 0 25 #define DEBUG_LEVEL_MIN 0
33 #define DEBUG_LEVEL_MAX 4 26 #define DEBUG_LEVEL_MAX 4
68 #define DEBUG_2(...) DEBUG_N(2, __VA_ARGS__) 61 #define DEBUG_2(...) DEBUG_N(2, __VA_ARGS__)
69 #define DEBUG_3(...) DEBUG_N(3, __VA_ARGS__) 62 #define DEBUG_3(...) DEBUG_N(3, __VA_ARGS__)
70 #define DEBUG_4(...) DEBUG_N(4, __VA_ARGS__) 63 #define DEBUG_4(...) DEBUG_N(4, __VA_ARGS__)
71 64
72 65
73 #endif /* DEBUG_H */ 66 #endif /* _DEBUG_H */