diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-10 14:13:02 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-10 14:13:02 +0800 |
commit | c734ccaecf6b01be64fb4c837d0593d17a808b02 (patch) | |
tree | 23fd9d317a90007b7f1950ec0f7db8c25d96a115 /src/include/span.hpp | |
parent | 5ff7dc38aa25eeeda7ef01753eca40e7a514b328 (diff) | |
download | mrust-c734ccaecf6b01be64fb4c837d0593d17a808b02.tar.gz |
Expand - Rough cfg conditions
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r-- | src/include/span.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp index 05417a83..0a1033e4 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -64,6 +64,7 @@ struct Spanned }; #define ERROR(span, code, msg) do { ::Span(span).error(code, [&](::std::ostream& os) { os << msg; }); throw ::std::runtime_error("Error fell through" #code); } while(0) +#define WARNING(span, code, msg) do { ::Span(span).warning(code, [&](::std::ostream& os) { os << msg; }); } while(0) #define BUG(span, msg) do { ::Span(span).bug([&](::std::ostream& os) { os << msg; }); throw ::std::runtime_error("Bug fell through"); } while(0) #define TODO(span, msg) do { ::Span(span).bug([&](::std::ostream& os) { os << "TODO: " << msg; }); throw ::std::runtime_error("Bug (todo) fell through"); } while(0) |