An interior pointer into a Store.
Definition: _store_class.hh:65
std::optional< ExnRef > take_exception()
Takes the pending exception from the store, if any.
Trap throw_exception(ExnRef exn)
Sets the pending exception on the store and returns a Trap.
Context(wasmtime_context_t *ptr)
Creates a context from the raw C API pointer.
Definition: _store_class.hh:79
bool has_exception()
Tests whether there is a pending exception on the store.
WASM_API_EXTERN wasm_trap_t * wasmtime_context_set_exception(wasmtime_context_t *store, const wasmtime_exnref_t *exn)
Sets the pending exception on the store and returns a trap.
WASM_API_EXTERN bool wasmtime_context_take_exception(wasmtime_context_t *store, wasmtime_exnref_t *exn_ret)
Takes the pending exception from the store, if any.