diff options
author | John Hodge <tpg@mutabah.net> | 2018-02-17 10:30:13 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-02-17 10:30:13 +0800 |
commit | 0650f7867c2ef3a867c94df0a0dd361b6055c833 (patch) | |
tree | 7f1ce639aeb7dd79acd69c0038dfcd679dcc89c0 /tools/standalone_miri/debug.hpp | |
parent | d61601143b167d48e50f8cfc81d51770da39fed1 (diff) | |
download | mrust-0650f7867c2ef3a867c94df0a0dd361b6055c833.tar.gz |
Standalone MIRI - Refactor Value/Allocation handling to allow deref to work.
Diffstat (limited to 'tools/standalone_miri/debug.hpp')
-rw-r--r-- | tools/standalone_miri/debug.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/standalone_miri/debug.hpp b/tools/standalone_miri/debug.hpp index 77295aa2..6102b014 100644 --- a/tools/standalone_miri/debug.hpp +++ b/tools/standalone_miri/debug.hpp @@ -35,4 +35,4 @@ public: #define LOG_FATAL(strm) do { DebugSink::get(__FUNCTION__,__FILE__,__LINE__,DebugLevel::Fatal) << strm; exit(1); } while(0) #define LOG_TODO(strm) do { DebugSink::get(__FUNCTION__,__FILE__,__LINE__,DebugLevel::Bug) << "TODO: " << strm; abort(); } while(0) #define LOG_BUG(strm) do { DebugSink::get(__FUNCTION__,__FILE__,__LINE__,DebugLevel::Bug) << "BUG: " << strm; abort(); } while(0) -#define LOG_ASSERT(cnd) do { if( !(cnd) ) { LOG_BUG("Assertion failure: " #cnd); } } while(0) +#define LOG_ASSERT(cnd,strm) do { if( !(cnd) ) { LOG_BUG("Assertion failure: " #cnd " - " << strm); } } while(0) |