pub fn leave() -> !
Expand description
Break the current execution.
Use this function to break the current message processing and save the state.
§Examples
use gcore::exec;
#[no_mangle]
extern "C" fn handle() {
if exec::gas_available() < 1_000_000 {
exec::leave();
}
}