5#ifndef WASMTIME_TYPES_TAG_HH
6#define WASMTIME_TYPES_TAG_HH
26 std::unique_ptr<wasmtime_tagtype_t, deleter> ptr;
Global compilation state in Wasmtime.
Definition: engine.hh:22
Type information for a WebAssembly function.
Definition: types/func.hh:15
Ref(const wasmtime_tagtype_t *ptr)
Creates a reference from the raw underlying C API representation.
Definition: tag.hh:37
Ref(const TagType &ty)
Creates a reference to the provided TagType.
Definition: tag.hh:39
FuncType functype() const
Definition: tag.hh:44
Type information for a WebAssembly exception tag.
Definition: tag.hh:21
TagType & operator=(TagType &&other)=default
Moves the tag type resources from another type to this one.
TagType(Engine &engine, FuncType &functype)
Creates a new tag type from the given function type and engine.
Definition: tag.hh:55
TagType & operator=(const TagType &other)
Copies another tag type into this one.
Definition: tag.hh:65
Ref * operator*()
Returns the underlying Ref, a non-owning reference pointing to this instance.
Definition: tag.hh:81
TagType(TagType &&other)=default
Moves the tag type resources from another type to this one.
TagType(const TagType &other)
Copies another tag type into this one.
Definition: tag.hh:62
TagType(Ref other)
Copies a reference into a uniquely owned tag type.
Definition: tag.hh:60
Ref * operator->()
Returns the underlying Ref, a non-owning reference pointing to this instance.
Definition: tag.hh:78
Wasmtime APIs for WebAssembly exception tag types.
WASM_API_EXTERN wasm_functype_t * wasmtime_tagtype_functype(const wasmtime_tagtype_t *)
Returns the function type describing this tag's exception payload.
WASM_API_EXTERN wasmtime_tagtype_t * wasmtime_tagtype_new(wasm_engine_t *engine, const wasm_functype_t *functype)
Creates a new tag type from the given function type.
WASM_API_EXTERN void wasmtime_tagtype_delete(wasmtime_tagtype_t *)
Deletes a wasmtime_tagtype_t.
struct wasmtime_tagtype_t wasmtime_tagtype_t
Opaque type representing a WebAssembly exception tag type.
Definition: tag.h:29
WASM_API_EXTERN wasmtime_tagtype_t * wasmtime_tagtype_copy(const wasmtime_tagtype_t *)
Returns a copy of the given wasmtime_tagtype_t (caller owns the result).