changeset 981:ee8ea5303489

Put file_bname in #ifdef DEBUG, since it's only used there.
author Thomas Klausner <tk@giga.or.at>
date Fri, 15 Mar 2013 19:43:46 +0100
parents 0f376cab3dcb
children 018357d4c9bb
files include/freeDiameter/libfdproto.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Thu Mar 14 18:46:05 2013 +0100
+++ b/include/freeDiameter/libfdproto.h	Fri Mar 15 19:43:46 2013 +0100
@@ -242,13 +242,12 @@
 #define __PRETTY_FUNCTION__ __func__
 #endif /* __PRETTY_FUNCTION__ */
 
+#ifdef DEBUG
 /* A version of __FILE__ without the full path */
 static char * file_bname = NULL;
 #define __STRIPPED_FILE__	(file_bname ?: (file_bname = basename((char *)__FILE__)))
 
-
 /* Boolean for tracing at a certain level */
-#ifdef DEBUG
 #define TRACE_BOOL(_level_) ( ((_level_) <= fd_g_debug_lvl) 					\
 				|| (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__)) 	\
 				|| (fd_debug_one_file && !strcmp(fd_debug_one_file, __STRIPPED_FILE__) ) )
"Welcome to our mercurial repository"