wasmtime_trap_new_code function

  1. @Native<Pointer<wasm_trap_t> Function(wasmtime_trap_code_t)>(wasmtime_trap_code_t)>()
Pointer<wasm_trap_t> wasmtime_trap_new_code(
  1. 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);