[][src]Function eosio_cdt_sys::eosio_exit

pub unsafe extern "C" fn eosio_exit(code: i32)

This method will abort execution of wasm without failing the contract. This is used to bypass all cleanup / destructors that would normally be called.

@param code - the exit code Example:

@code eosio_exit(0); eosio_exit(1); eosio_exit(2); eosio_exit(3); @endcode