43 if (error !=
nullptr) {
Errors coming from Wasmtime.
Definition: error.hh:26
A WebAssembly instance.
Definition: instance.hh:32
Fallible result type used for Wasmtime.
Definition: error.hh:70
An interior pointer into a Store.
Definition: store.hh:69
Type information for a WebAssembly exception tag.
Definition: types/tag.hh:20
A WebAssembly tag.
Definition: tag.hh:26
const wasmtime_tag_t & capi() const
Returns the raw underlying C API tag this is using.
Definition: tag.hh:60
TagType type(Store::Context cx) const
Returns the type of this tag.
Definition: tag.hh:50
static Result< Tag > create(Store::Context cx, const TagType &ty)
Create a new host-defined tag.
Definition: tag.hh:40
Tag(wasmtime_tag_t tag)
Creates a tag from the raw underlying C API representation.
Definition: tag.hh:32
bool eq(Store::Context cx, const Tag &other) const
Tests whether two tags are identical.
Definition: tag.hh:55
Representation of a tag in Wasmtime.
Definition: tag.h:28
Wasmtime APIs for interacting with WebAssembly tags.
WASM_API_EXTERN wasmtime_error_t * wasmtime_tag_new(wasmtime_context_t *store, const wasm_tagtype_t *tt, wasmtime_tag_t *ret)
Creates a new host-defined tag.
WASM_API_EXTERN wasm_tagtype_t * wasmtime_tag_type(const wasmtime_context_t *store, const wasmtime_tag_t *tag)
Returns the type of the given tag.
WASM_API_EXTERN bool wasmtime_tag_eq(const wasmtime_context_t *store, const wasmtime_tag_t *a, const wasmtime_tag_t *b)
Tests whether two tags are identical (same definition).