diff options
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 7a4c60b0..7603b080 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -61,4 +61,5 @@ 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 BUG(span, msg) do { (span).bug([&](::std::ostream& os) { os << msg; }); throw ::std::runtime_error("Bug fell through"); } while(0) +#define TODO(span, msg) do { (span).bug([&](::std::ostream& os) { os << "TODO: " << msg; }); throw ::std::runtime_error("Bug (todo) fell through"); } while(0) |