wasmtime_trap_new function

  1. @Native<Pointer<wasm_trap_t> Function(Pointer<wasm_byte_t>, Size)>(ffi.Pointer<ffi.Char>, ffi.Size)>()
Pointer<wasm_trap_t> wasmtime_trap_new(
  1. Pointer<wasm_byte_t> msg,
  2. 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,
);