diff options
| author | John Hodge <tpg@mutabah.net> | 2015-11-06 13:15:27 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2015-11-06 13:15:27 +0800 |
| commit | 9203294b4b5625012bfd02cd3358175deb98afa7 (patch) | |
| tree | 06928171832218504f5a4c4b6040c2cb6aab94a9 /src/include | |
| parent | 5d0917df41ad7fedb3fda04d8cb18b495d8adf03 (diff) | |
| download | mrust-9203294b4b5625012bfd02cd3358175deb98afa7.tar.gz | |
Hack in span support to resolve
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/span.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp index 70d78205..7a4c60b0 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -60,5 +60,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()/*span*/).bug([&](::std::ostream& os) { os << msg; }); throw ::std::runtime_error("Bug fell through"); } while(0) +#define BUG(span, msg) do { (span).bug([&](::std::ostream& os) { os << msg; }); throw ::std::runtime_error("Bug fell through"); } while(0) |
