ekg2  GIT master
debug.h
Idź do dokumentacji tego pliku.
1 /* $Id: debug.h 4564 2008-08-31 15:49:56Z peres $ */
2 
3 #ifndef __EKG_DEBUG_H
4 #define __EKG_DEBUG_H
5 
6 typedef enum {
7  DEBUG_IO = 1,
11  DEBUG_GGMISC, /* cause of a lot GG_DEBUG_MISC in libgadu we've got special formats for them... */
15  __DEBUG_WTF /* serious fail */
17 
18 void debug(const char *format, ...);
19 void debug_ext(debug_level_t level, const char *format, ...);
20 
21 #define debug_io(args...) debug_ext(DEBUG_IO, args)
22 #define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
23 #define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
24 #define debug_error(args...) debug_ext(DEBUG_ERROR, args)
25 #define debug_white(args...) debug_ext(DEBUG_WHITE, args)
26 #define debug_warn(args...) debug_ext(DEBUG_WARN, args)
27 #define debug_ok(args...) debug_ext(DEBUG_OK, args)
28 #define debug_wtf(args...) debug_ext(DEBUG_WTF, args)
29 
30 #endif
31 
32 
33 /*
34  * Local Variables:
35  * mode: c
36  * c-file-style: "k&r"
37  * c-basic-offset: 8
38  * indent-tabs-mode: t
39  * End:
40  */
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
Definition: debug.h:15