Skip to content

Commit 04595bb

Browse files
committed
fix: don't shim try/catch/throw from inside msgpack
it will be used via aztec-packages
1 parent 3e1830d commit 04595bb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/msgpack/assert.hpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,4 @@
2222
#define MSGPACK_ASSERT BOOST_ASSERT
2323

2424
#endif // defined(MSGPACK_NO_BOOST)
25-
26-
#ifdef NO_EXCEPTIONS
27-
struct AbortStream {
28-
void operator<< [[noreturn]] (const auto& error) {
29-
info(error.what());
30-
std::abort();
31-
}
32-
};
33-
#define THROW AbortStream() <<
34-
#define try if (true)
35-
#define catch(...) if (false)
36-
#define RETHROW
37-
#else
38-
#define THROW throw
39-
#define RETHROW THROW
40-
#endif
41-
4225
#endif // MSGPACK_ASSERT_HPP

0 commit comments

Comments
 (0)