diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-20 22:15:35 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-20 22:15:35 +0800 |
commit | a99e49b7505d2912d8699d4c791b8b30c194024b (patch) | |
tree | cbd5940603be8811cf35f05e496445ec6c9c65dd /tools/minicargo/debug.h | |
parent | 72571e39e4659cb32b82c633d45a0fcd7b8c5ffb (diff) | |
download | mrust-a99e49b7505d2912d8699d4c791b8b30c194024b.tar.gz |
minicargo - Makefile and posix_spawn
Diffstat (limited to 'tools/minicargo/debug.h')
-rw-r--r-- | tools/minicargo/debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/minicargo/debug.h b/tools/minicargo/debug.h index 5cc338e3..bff9ddf3 100644 --- a/tools/minicargo/debug.h +++ b/tools/minicargo/debug.h @@ -10,10 +10,10 @@ extern void Debug_Print(::std::function<void(::std::ostream& os)> cb); #define TODO(fmt) do { Debug_Print([&](auto& os){ os << "DEBUG: " << fmt; }); abort(); } while(0) namespace { - static void format_to_stream(::std::ostream& os) { + static inline void format_to_stream(::std::ostream& os) { } template<typename T, typename... A> - static void format_to_stream(::std::ostream& os, const T& v, const A&... a) { + static inline void format_to_stream(::std::ostream& os, const T& v, const A&... a) { os << v; format_to_stream(os, a...); } |