Mercurial > hg > freeDiameter
diff include/freeDiameter/libfdproto.h @ 1303:090390e89b1d
Fix --dbg-file and --dbg-function usage. However there is something weird on MacOS X still...
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 18 Oct 2015 12:00:36 +0800 |
parents | 3f1e79e1273e |
children | 5a505af0bba0 |
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h Sun Oct 18 11:25:28 2015 +0800 +++ b/include/freeDiameter/libfdproto.h Sun Oct 18 12:00:36 2015 +0800 @@ -289,7 +289,7 @@ #define __PRETTY_FUNCTION__ __func__ #endif /* __PRETTY_FUNCTION__ */ -/* A version of __FILE__ without the full path */ +/* A version of __FILE__ without the full path. This is specific to each C file being compiled */ static char * file_bname = NULL; static char * file_bname_init(char * full) { file_bname = basename(full); return file_bname; } #define __STRIPPED_FILE__ (file_bname ?: file_bname_init((char *)__FILE__))