Skip to content

Commit

Permalink
fix: msgpack error (AztecProtocol/barretenberg#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored May 18, 2023
1 parent ea12f6c commit 219c307
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions barretenberg/cpp/src/msgpack-c/include/msgpack/assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <cassert>
#define MSGPACK_ASSERT assert

#else // defined(MSGPACK_NO_BOOST)
#else // defined(MSGPACK_NO_BOOST)

#include <boost/assert.hpp>
#define MSGPACK_ASSERT BOOST_ASSERT
Expand All @@ -25,15 +25,16 @@

#ifdef __wasm__
struct AbortStream {
void operator<< [[noreturn]] (const auto& error) {
info(error.what());
void operator<< [[noreturn]] (const auto& error)
{
(void)error; // TODO how to print this?
std::abort();
}
};
#define THROW AbortStream() <<
#define try if (true)
#define catch(...) if (false)
#define RETHROW
#define RETHROW
#else
#define THROW throw
#define RETHROW THROW
Expand Down

0 comments on commit 219c307

Please sign in to comment.