summaryrefslogtreecommitdiff
path: root/src/include/span.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r--src/include/span.hpp1
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)