comparison 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
comparison
equal deleted inserted replaced
1302:d8c998e7c535 1303:090390e89b1d
287 #endif /*(!defined( __func__)) && (__STDC_VERSION__ < 199901L) */ 287 #endif /*(!defined( __func__)) && (__STDC_VERSION__ < 199901L) */
288 #ifndef __PRETTY_FUNCTION__ 288 #ifndef __PRETTY_FUNCTION__
289 #define __PRETTY_FUNCTION__ __func__ 289 #define __PRETTY_FUNCTION__ __func__
290 #endif /* __PRETTY_FUNCTION__ */ 290 #endif /* __PRETTY_FUNCTION__ */
291 291
292 /* A version of __FILE__ without the full path */ 292 /* A version of __FILE__ without the full path. This is specific to each C file being compiled */
293 static char * file_bname = NULL; 293 static char * file_bname = NULL;
294 static char * file_bname_init(char * full) { file_bname = basename(full); return file_bname; } 294 static char * file_bname_init(char * full) { file_bname = basename(full); return file_bname; }
295 #define __STRIPPED_FILE__ (file_bname ?: file_bname_init((char *)__FILE__)) 295 #define __STRIPPED_FILE__ (file_bname ?: file_bname_init((char *)__FILE__))
296 296
297 297
"Welcome to our mercurial repository"