Navigation


Changeset 981:ee8ea5303489 in freeDiameter for include


Ignore:
Timestamp:
Mar 16, 2013, 3:43:46 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Put file_bname in #ifdef DEBUG, since it's only used there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r972 r981  
    243243#endif /* __PRETTY_FUNCTION__ */
    244244
     245#ifdef DEBUG
    245246/* A version of __FILE__ without the full path */
    246247static char * file_bname = NULL;
    247248#define __STRIPPED_FILE__       (file_bname ?: (file_bname = basename((char *)__FILE__)))
    248249
    249 
    250250/* Boolean for tracing at a certain level */
    251 #ifdef DEBUG
    252251#define TRACE_BOOL(_level_) ( ((_level_) <= fd_g_debug_lvl)                                     \
    253252                                || (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__))       \
Note: See TracChangeset for help on using the changeset viewer.