[][src]Function eosio_cdt_sys::eosio_assert

pub unsafe extern "C" fn eosio_assert(test: u32, msg: *const c_char)

Aborts processing of this action and unwinds all pending changes if the test condition is true

@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