Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
assert.cpp
Go to the documentation of this file.
3
4namespace bb {
6{
7 static AssertMode current_mode = AssertMode::ABORT;
8 return current_mode;
9}
10
11void assert_failure(std::string const& err)
12{
14 info("NOT FOR PROD - assert as warning: ", err);
15 return;
16 }
17 throw_or_abort(err);
18}
19} // namespace bb
void info(Args... args)
Definition log.hpp:74
Entry point for Barretenberg command-line interface.
AssertMode & get_assert_mode()
Definition assert.cpp:5
void assert_failure(std::string const &err)
Definition assert.cpp:11
AssertMode
Definition assert.hpp:15
void throw_or_abort(std::string const &err)