wasmtime_trap_code function
\brief Attempts to extract the trap code from this trap.
Returns true if the trap is an instruction trap triggered while
executing Wasm. If true is returned then the trap code is returned
through the code pointer. If false is returned then this is not
an instruction trap -- traps can also be created using wasm_trap_new,
or occur with WASI modules exiting with a certain exit code.
Implementation
@ffi.Native<
ffi.Bool Function(ffi.Pointer<wasm_trap_t>, ffi.Pointer<wasmtime_trap_code_t>)
>()
external bool wasmtime_trap_code(
ffi.Pointer<wasm_trap_t> arg0,
ffi.Pointer<wasmtime_trap_code_t> code,
);