mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-07-03 07:30:14 +00:00
Improve assert patch message.
This commit is contained in:
parent
297c7c59ee
commit
52ffd46c3f
@ -22,4 +22,6 @@
|
||||
#include_next <assert.h>
|
||||
#undef assert
|
||||
#include <stdexcept>
|
||||
#define assert(cond) ((cond) ? void(0) : throw std::runtime_error("Failed assert: " #cond))
|
||||
#define assert(cond) \
|
||||
((cond) ? void(0) : throw std::runtime_error( \
|
||||
std::string("Circuit constraint violated in ") + __FILE__ + ":" + std::to_string(__LINE__) + ": " + #cond))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user