MCPcopy Create free account
hub / github.com/coinbase/cb-mpc / require

Function require

demo-cpp/parallel_transport/main.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void require(bool ok, const std::string& msg) {
27 if (!ok) die(msg);
28}
29
30void require_rv(error_t got, error_t want, const std::string& msg) {
31 if (got != want) {

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected