wasmi_c_api

Function wasmi_trap_new

source
#[no_mangle]
pub unsafe extern "C" fn wasmi_trap_new(
    message: *const u8,
    len: usize,
) -> Box<wasm_trap_t>
Expand description

Creates a new wasm_trap_t from the given message and len pair.

ยงSafety

The caller is responsible to provide a valid message and len pair.