diff options
author | John Hodge <tpg@mutabah.net> | 2018-02-10 12:25:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-02-10 12:25:44 +0800 |
commit | 9e864a5d3ea05706ea6c7f68e47d32629a2c877e (patch) | |
tree | 290754fd4b3f1a3d265303373b5428872e92c9c0 /tools/minicargo/debug.h | |
parent | daacad86908557e5914d2d6931f3db6d1b75f1d0 (diff) | |
download | mrust-9e864a5d3ea05706ea6c7f68e47d32629a2c877e.tar.gz |
minicargo - Add parser for cfg() in target-specific options.
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) { |