Changeset 205:ff9ade352076 in freeDiameter for include
- Timestamp:
- Feb 12, 2010, 6:29:08 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r191 r205 71 71 #include <unistd.h> 72 72 73 #ifdef DEBUG 74 #include <libgen.h> /* for basename if --dbg_file is specified */ 75 #endif /* DEBUG */ 76 73 77 /*============================================================*/ 74 78 /* DEBUG */ … … 167 171 #endif /* __PRETTY_FUNCTION__ */ 168 172 173 /* A version of __FILE__ without the full path */ 174 static char * file_bname = NULL; 175 #define __STRIPPED_FILE__ (file_bname ?: (file_bname = basename(__FILE__))) 176 169 177 /* Boolean for tracing at a certain level */ 178 #ifdef DEBUG 170 179 #define TRACE_BOOL(_level_) ( ((_level_) <= local_debug_level + fd_g_debug_lvl) \ 171 180 || (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__)) \ 172 || (fd_debug_one_file && !strcmp(fd_debug_one_file, __FILE__) ) ) 181 || (fd_debug_one_file && !strcmp(fd_debug_one_file, __STRIPPED_FILE__) ) ) 182 #else /* DEBUG */ 183 #define TRACE_BOOL(_level_) ((_level_) <= local_debug_level + fd_g_debug_lvl) 184 #endif /* DEBUG */ 173 185 174 186 /* The general debug macro, each call results in two lines of debug messages (change the macro for more compact output) */
Note: See TracChangeset
for help on using the changeset viewer.