wasmtime_context_take_exception function
- @Native<Bool Function(Pointer<
wasmtime_context_t> , Pointer<wasmtime_exnref_t> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_exnref_t>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_exnref_t> exn_ret
\brief Takes the pending exception from the store, if any.
If there is a pending exception, removes it from the store and returns it. The caller owns the returned pointer and must free it with #wasmtime_exnref_unroot.
\param store the store context \param exn_ret on success, set to the exception (caller-owned)
\return true if there was a pending exception, false otherwise.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_exnref_t>,
)
>()
external bool wasmtime_context_take_exception(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_exnref_t> exn_ret,
);