39#define WASMTIME_EXTERNTYPE_TAG 4
Compilation environment and configuration.
An opaque object representing the type of a external value. Can be seen as a superclass of wasm_funct...
An opaque object representing the type of a function.
WASM_API_EXTERN const wasmtime_tagtype_t * wasmtime_externtype_as_tagtype_const(const wasm_externtype_t *)
Converts a const wasm_externtype_t to a const wasmtime_tagtype_t, or NULL if not a tag.
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 wasm_externtype_t * wasmtime_tagtype_as_externtype(wasmtime_tagtype_t *)
Converts a wasmtime_tagtype_t to a wasm_externtype_t (borrowed).
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_externtype_as_tagtype(wasm_externtype_t *)
Converts a wasm_externtype_t to a wasmtime_tagtype_t, or NULL if not a tag.
WASM_API_EXTERN const wasm_externtype_t * wasmtime_tagtype_as_externtype_const(const wasmtime_tagtype_t *)
Converts a const wasmtime_tagtype_t to a const wasm_externtype_t (borrowed).
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).