Idź do dokumentacji tego pliku.00001
00002
00003 #ifndef __EKG_DEBUG_H
00004 #define __EKG_DEBUG_H
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00010 typedef enum {
00011 DEBUG_IO = 1,
00012 DEBUG_IORECV,
00013 DEBUG_FUNCTION,
00014 DEBUG_ERROR,
00015 DEBUG_GGMISC,
00016 DEBUG_WHITE,
00017 DEBUG_WARN,
00018 DEBUG_OK,
00019 DEBUG_WTF
00020 } debug_level_t;
00021
00022 #ifndef DISABLE_DEBUG
00023 void debug(const char *format, ...);
00024 void debug_ext(debug_level_t level, const char *format, ...);
00025 #else
00026 #define debug(...)
00027 #define debug_ext(...)
00028 #endif
00029
00030 #define debug_io(args...) debug_ext(DEBUG_IO, args)
00031 #define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
00032 #define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
00033 #define debug_error(args...) debug_ext(DEBUG_ERROR, args)
00034 #define debug_white(args...) debug_ext(DEBUG_WHITE, args)
00035 #define debug_warn(args...) debug_ext(DEBUG_WARN, args)
00036 #define debug_ok(args...) debug_ext(DEBUG_OK, args)
00037 #define debug_wtf(args...) debug_ext(DEBUG_WTF, args)
00038
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042
00043 #endif
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053