We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa91cdd commit 5ee9a1cCopy full SHA for 5ee9a1c
1 file changed
include/msgpack/assert.hpp
@@ -22,21 +22,4 @@
22
#define MSGPACK_ASSERT BOOST_ASSERT
23
24
#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
42
#endif // MSGPACK_ASSERT_HPP
0 commit comments