diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-19 11:10:27 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-19 11:10:27 +0800 |
commit | a2b8e1d6fa9270f980625d1aa42350bf053cc2de (patch) | |
tree | eecf71b6bda7283f7adc185907458453fdd0baa7 /src/include | |
parent | e2851874b4d3e8dcd3a65e52ef7de11b1d4db1c1 (diff) | |
download | mrust-a2b8e1d6fa9270f980625d1aa42350bf053cc2de.tar.gz |
Debug - if(false) NullSink usage (gets compiled, but never runs)
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/debug.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/debug.hpp b/src/include/debug.hpp index 21de5493..cb258bf5 100644 --- a/src/include/debug.hpp +++ b/src/include/debug.hpp @@ -17,10 +17,10 @@ extern int g_debug_indent_level; #else # define INDENT() do { } while(0) # define UNINDENT() do {} while(0) -# define DEBUG(ss) do{ (void)(::NullSink() << ss); } while(0) +# define DEBUG(ss) do{ if(false) (void)(::NullSink() << ss); } while(0) # define TRACE_FUNCTION do{} while(0) -# define TRACE_FUNCTION_F(ss) do{ (void)(::NullSink() << ss); } while(0) -# define TRACE_FUNCTION_FR(ss,ss2) do{ (void)(::NullSink() << ss); } while(0) +# define TRACE_FUNCTION_F(ss) do{ if(false) (void)(::NullSink() << ss); } while(0) +# define TRACE_FUNCTION_FR(ss,ss2) do{ if(false) (void)(::NullSink() << ss); if(false) (void)(::NullSink() << ss2); } while(0) #endif extern bool debug_enabled(); |