Function wasmer_c_api::wasm_c_api::trap::wasm_trap_new

source ·
#[no_mangle]
pub unsafe extern "C" fn wasm_trap_new(
    _store: &mut wasm_store_t,
    message: &wasm_message_t,
) -> Option<Box<wasm_trap_t>>
Expand description

Create a new trap message.

Be careful, the message is typed with wasm_message_t which represents a null-terminated string.

§Example

See the module’s documentation for a complete example.