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#ifndef FUZZING_DISABLE_WARNINGS
15 info("NOT FOR PROD - assert as warning: ", err);
16#endif
17 return;
18 }
19 throw_or_abort(err);
20}
21} // namespace bb
void info(Args... args)
Definition log.hpp:89
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
AssertMode & get_assert_mode()
Definition assert.cpp:5
void assert_failure(std::string const &err)
Definition assert.cpp:11
AssertMode
Definition assert.hpp:16
void throw_or_abort(std::string const &err)