ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
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... */
19  DEBUG_WTF /* serious fail */
21 
22 #ifndef DISABLE_DEBUG
23 void debug(const char *format, ...);
24 void debug_ext(debug_level_t level, const char *format, ...);
25 #else
26 #define debug(...)
27 #define debug_ext(...)
28 #endif
29 
30 #define debug_io(args...) debug_ext(DEBUG_IO, args)
31 #define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
32 #define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
33 #define debug_error(args...) debug_ext(DEBUG_ERROR, args)
34 #define debug_white(args...) debug_ext(DEBUG_WHITE, args)
35 #define debug_warn(args...) debug_ext(DEBUG_WARN, args)
36 #define debug_ok(args...) debug_ext(DEBUG_OK, args)
37 #define debug_wtf(args...) debug_ext(DEBUG_WTF, args)
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif
44 
45 
46 /*
47  * Local Variables:
48  * mode: c
49  * c-file-style: "k&r"
50  * c-basic-offset: 8
51  * indent-tabs-mode: t
52  * End:
53  */