wasmtime_error_exit_status function

  1. @Native<Bool Function(Pointer<wasmtime_error_t>, Pointer<Int>)>(ffi.Pointer<wasmtime_error_t>, ffi.Pointer<ffi.Int>)>()
bool wasmtime_error_exit_status(
  1. Pointer<wasmtime_error_t> arg0,
  2. Pointer<Int> status
)

\brief Attempts to extract a WASI-specific exit status from this error.

Returns true if the error is a WASI "exit" trap and has a return status. If true is returned then the exit status is returned through the status pointer. If false is returned then this is not a wasi exit trap.

Implementation

@ffi.Native<
  ffi.Bool Function(ffi.Pointer<wasmtime_error_t>, ffi.Pointer<ffi.Int>)
>()
external bool wasmtime_error_exit_status(
  ffi.Pointer<wasmtime_error_t> arg0,
  ffi.Pointer<ffi.Int> status,
);