System C++ API
Defines wrappers over eosio_assert.
Functions
Functions Documentation
function check
void eosio::check(
bool pred,
const char * msg
)
Assert if the predicate fails and use the supplied message.
Example:
eosio::check(a == b, "a does not equal b");
function check
void eosio::check(
bool pred,
const std::string & msg
)
Assert if the predicate fails and use the supplied message.
Example:
eosio::check(a == b, "a does not equal b");
function check
void eosio::check(
bool pred,
std::string && msg
)
Assert if the predicate fails and use the supplied message.
Example:
eosio::check(a == b, "a does not equal b");
function check
void eosio::check(
bool pred,
const char * msg,
size_t n
)
Assert if the predicate fails and use a subset of the supplied message.
Example:
const char* msg = "a does not equal b b does not equal a";
eosio::check(a == b, "a does not equal b", 18);
function check
void eosio::check(
bool pred,
const std::string & msg,
size_t n
)
Assert if the predicate fails and use a subset of the supplied message.
Example:
std::string msg = "a does not equal b b does not equal a";
eosio::check(a == b, msg, 18);
function check
void eosio::check(
bool pred,
uint64_t code
)
Assert if the predicate fails and use the supplied error code.
Example:
eosio::check(a == b, 13);