Mercurial > hg > freeDiameter
comparison include/freeDiameter/libfdproto.h @ 1258:97caad40b665
Cast enum to int to allow comparison with picky compiler(flag)s.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Tue, 11 Feb 2014 14:47:02 +0100 |
parents | c9a160b815ea |
children | 25fad6714991 |
comparison
equal
deleted
inserted
replaced
1256:bd6b40c9f731 | 1258:97caad40b665 |
---|---|
481 static __inline__ int old_TRACE_BOOL( enum old_levels level, const char * file, const char * func ) MARK_DEPRECATED | 481 static __inline__ int old_TRACE_BOOL( enum old_levels level, const char * file, const char * func ) MARK_DEPRECATED |
482 { | 482 { |
483 if ((fd_debug_one_function && !strcmp(fd_debug_one_function, func)) | 483 if ((fd_debug_one_function && !strcmp(fd_debug_one_function, func)) |
484 || (fd_debug_one_file && !strcmp(fd_debug_one_file, file) )) | 484 || (fd_debug_one_file && !strcmp(fd_debug_one_file, file) )) |
485 return 2; /* Level override */ | 485 return 2; /* Level override */ |
486 if (level <= fd_g_debug_lvl) | 486 if ((int)level <= fd_g_debug_lvl) |
487 return 1; /* Normal level */ | 487 return 1; /* Normal level */ |
488 return 0; /* No trace */ | 488 return 0; /* No trace */ |
489 } | 489 } |
490 #define TRACE_BOOL(level) old_TRACE_BOOL((level), __STRIPPED_FILE__, __PRETTY_FUNCTION__) | 490 #define TRACE_BOOL(level) old_TRACE_BOOL((level), __STRIPPED_FILE__, __PRETTY_FUNCTION__) |
491 | 491 |