wasmtime_trap_new_code function
- @Native<Pointer<
wasm_trap_t> Function(wasmtime_trap_code_t)>(wasmtime_trap_code_t)>()
- int code
\brief Creates a new trap from the given trap code.
\param code the trap code to associate with this trap
The #wasm_trap_t returned is owned by the caller.
Implementation
@ffi.Native<ffi.Pointer<wasm_trap_t> Function(wasmtime_trap_code_t)>()
external ffi.Pointer<wasm_trap_t> wasmtime_trap_new_code(int code);