diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-24 15:42:32 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-24 15:42:32 +0000 |
commit | e0d3e993ccea223b9a4132606b621db23479c403 (patch) | |
tree | 99c60f7f9995e708892f45cc4873b0016ee883ba /navit/debug.h | |
parent | 372db8008e61b3e66140643e7dc3066cd46414b6 (diff) | |
download | navit-e0d3e993ccea223b9a4132606b621db23479c403.tar.gz |
Fix:Core:MSVC fixes|Thanks chollya
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3963 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.h')
-rw-r--r-- | navit/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/debug.h b/navit/debug.h index b452f1837..0b1142e08 100644 --- a/navit/debug.h +++ b/navit/debug.h @@ -30,7 +30,7 @@ extern int debug_level; #define dbg_str2(x) #x #define dbg_str1(x) dbg_str2(x) #define dbg_module dbg_str1(MODULE) -#define dbg(level,...) ({ if (debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); }) +#define dbg(level,...) { if (debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); } #define dbg_assert(expr) ((expr) ? (void) 0 : debug_assert_fail(dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),__FILE__,__LINE__,dbg_str1(expr))) #ifdef DEBUG_MALLOC |