diff options
author | Pjotr Prins | 2017-11-09 09:05:13 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-11-09 09:05:13 +0000 |
commit | 09be8f791f8c2d9f7eb5ef5b2f67922c79862024 (patch) | |
tree | b9a3f3e9b4d26f2e26c321df3208ed3cde81e810 /src/debug.h | |
parent | 04e8eab1c328b008c70308eebd9c6b12932ec2b5 (diff) | |
download | pangemma-09be8f791f8c2d9f7eb5ef5b2f67922c79862024.tar.gz |
Disabled debug output when not using -debug
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index b3ec17b..29f6c69 100644 --- a/src/debug.h +++ b/src/debug.h @@ -77,7 +77,7 @@ inline void fail_msg(std::string msg) { #else // DEBUG #define warning_msg(msg) cerr << "**** WARNING: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl; -#define debug_msg(msg) cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl; +#define debug_msg(msg) (is_debug_mode() && cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl); #define assert_issue(is_issue, expr) \ ((is_issue) ? enforce_msg(expr,"FAIL: ISSUE assert") : __ASSERT_VOID_CAST(0)) |