wasmtime_trap_new function
- @Native<Pointer<
wasm_trap_t> Function(Pointer<wasm_byte_t> , Size)>(ffi.Pointer<ffi.Char>, ffi.Size)>()
- Pointer<
wasm_byte_t> msg, - int msg_len
\brief Creates a new trap with the given message.
\param msg the message to associate with this trap
\param msg_len the byte length of msg
The #wasm_trap_t returned is owned by the caller.
Implementation
@ffi.Native<
ffi.Pointer<wasm_trap_t> Function(ffi.Pointer<ffi.Char>, ffi.Size)
>()
external ffi.Pointer<wasm_trap_t> wasmtime_trap_new(
ffi.Pointer<ffi.Char> msg,
int msg_len,
);