ekg2  GIT master
debug.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 #ifndef __EKG_DEBUG_H
4 #define __EKG_DEBUG_H
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef enum {
11  DEBUG_IO = 1,
15  DEBUG_GGMISC, /* cause of a lot GG_DEBUG_MISC in libgadu we've got special formats for them... */
20 
21 #ifndef DISABLE_DEBUG
22 void debug(const char *format, ...);
23 void debug_ext(debug_level_t level, const char *format, ...);
24 #else
25 #define debug(...)
26 #define debug_ext(...)
27 #endif
28 
29 #define debug_io(args...) debug_ext(DEBUG_IO, args)
30 #define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
31 #define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
32 #define debug_error(args...) debug_ext(DEBUG_ERROR, args)
33 #define debug_white(args...) debug_ext(DEBUG_WHITE, args)
34 #define debug_warn(args...) debug_ext(DEBUG_WARN, args)
35 #define debug_ok(args...) debug_ext(DEBUG_OK, args)
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42 
43 
44 /*
45  * Local Variables:
46  * mode: c
47  * c-file-style: "k&r"
48  * c-basic-offset: 8
49  * indent-tabs-mode: t
50  * End:
51  */
Definition: debug.h:12
Definition: debug.h:13
Definition: ekg_hash_benchmark.c:47
Definition: debug.h:18
Definition: debug.h:14
void debug(const char *format,...)
Definition: stuff.c:1961
Definition: debug.h:16
void debug_ext(debug_level_t level, const char *format,...)
Definition: stuff.c:1947
Definition: debug.h:17
Definition: debug.h:15
debug_level_t
Definition: debug.h:10
Definition: debug.h:11