Function eosio_sys::eosio_assert
source · Expand description
Aborts processing of this action and unwinds all pending changes if the test condition is true @brief Aborts processing of this action and unwinds all pending changes @param test - 0 to abort, 1 to ignore
Example:
@code eosio_assert(1 == 2, “One is not equal to two.”); eosio_assert(1 == 1, “One is not equal to one.”); @endcode
@param msg - a null terminated string explaining the reason for failure