33 #define DEBUG_GET_ONCE_OPTION(suffix, name, _default) \ 34 static const char *debug_get_option_##suffix() \ 36 static bool gotten = false; \ 37 static const char *stored; \ 40 stored = debug_get_option(name, _default); \ 45 #define DEBUG_GET_ONCE_BOOL_OPTION(suffix, name, _default) \ 46 static bool debug_get_bool_option_##suffix() \ 48 static bool gotten = false; \ 52 stored = debug_get_bool_option(name, _default); \ 57 #define DEBUG_GET_ONCE_NUM_OPTION(suffix, name, _default) \ 58 static long debug_get_num_option_##suffix() \ 60 static long gotten = false; \ 64 stored = debug_get_num_option(name, _default); \ 69 #define DEBUG_GET_ONCE_FLOAT_OPTION(suffix, name, _default) \ 70 static long debug_get_float_option_##suffix() \ 72 static long gotten = false; \ 76 stored = debug_get_float_option(name, _default); \ bool debug_get_bool_option(const char *name, bool _default)
Definition: u_debug.c:49
long debug_get_num_option(const char *name, long _default)
Definition: u_debug.c:91
const char * debug_get_option(const char *name, const char *_default)
Definition: u_debug.c:29
Header holding common defines.
float debug_get_float_option(const char *name, float _default)
Definition: u_debug.c:117