67 #define DBG_PREFIX(s) DBG_##s 68 #define CTL_PREFIX(s) CTL_##s 70 #define DBG(f) debug_flag_get(DBG_PREFIX(f)) 71 #define SET(f,v) debug_flag_set(DBG_PREFIX(f), v) 73 #define ENABLE(f) SET(f,1) 74 #define DISABLE(f) SET(f,0) 76 #define ENABLED(f) DBG(f) 77 #define DISABLED(f) (! DBG(f)) 79 #define IF_ENABLED(f) if ( ENABLED(f) ) 80 #define IF_DISABLED(f) if ( ! ENABLED(f) ) 92 #define E(s) DBG_PREFIX(s) 94 #include "messages.flag-defns" 113 #endif // debug_flag_h
int debug_flag_get(dbg_category flag)
pmsg_category dbg_category
void debug_flag_set(dbg_category flag, int v)