diff options
author | John Hodge (Mutabah) <acessdev@gmail.com> | 2018-02-11 15:20:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-11 15:20:28 +0800 |
commit | 3718f8cb7ee7b8c93e4d69b9aa2e00b4f50efd62 (patch) | |
tree | 9d16f869bbff27743fe7c233fba9c4665a4d9138 /tools/minicargo/debug.h | |
parent | aeda962b0b24582ec39c8a866918c9477157e83c (diff) | |
parent | 9e864a5d3ea05706ea6c7f68e47d32629a2c877e (diff) | |
download | mrust-3718f8cb7ee7b8c93e4d69b9aa2e00b4f50efd62.tar.gz |
Merge branch 'master' into common_layout
Diffstat (limited to 'tools/minicargo/debug.h')
-rw-r--r-- | tools/minicargo/debug.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/minicargo/debug.h b/tools/minicargo/debug.h index c445594f..ace00876 100644 --- a/tools/minicargo/debug.h +++ b/tools/minicargo/debug.h @@ -14,13 +14,12 @@ extern void Debug_Print(dbg_cb_t cb); #if defined(NOLOG) # define DEBUG(fmt) do { } while(0) -# define TODO(fmt) do { } while(0) # define TRACE_FUNCTION_F(fmt) do{}while(0) #else # define DEBUG(fmt) do { Debug_Print([&](auto& os){ os << "DEBUG: " << fmt; }); } while(0) -# define TODO(fmt) do { Debug_Print([&](auto& os){ os << "TODO: " << fmt; }); abort(); } while(0) # define TRACE_FUNCTION_F(fmt) DebugFunctionScope trace_function_hdr { __FUNCTION__, [&](auto& os){ os << fmt; } } #endif +#define TODO(fmt) do { ::std::cerr << "TODO: " << fmt << ::std::endl; abort(); } while(0) namespace { static inline void format_to_stream(::std::ostream& os) { |