5#ifndef WASMTIME_TYPES_EXNREF_H
6#define WASMTIME_TYPES_EXNREF_H
Definition and accessors of wasmtime_error_t.
Compilation environment and configuration.
An opaque object representing the type of a tag.
A list of wasm_valtype_t values.
Definition: wasm.h:183
Errors generated by Wasmtime.
WASM_API_EXTERN wasmtime_error_t * wasmtime_exn_type_new(const wasm_engine_t *engine, const wasm_valtype_vec_t *params, wasmtime_exn_type_t **out)
Creates a new exception type with the given parameter types.
WASM_API_EXTERN wasmtime_exn_type_t * wasmtime_exn_type_copy(const wasmtime_exn_type_t *ty)
Clones ty, returning a pointer that must be deleted with wasmtime_exn_type_delete.
struct wasmtime_exn_type wasmtime_exn_type_t
A type of a WebAssembly exception.
Definition: types/exnref.h:16
WASM_API_EXTERN wasm_tagtype_t * wasmtime_exn_type_tag_type(const wasmtime_exn_type_t *ty)
Returns tag type associated with this exception type.
WASM_API_EXTERN void wasmtime_exn_type_delete(wasmtime_exn_type_t *ty)
Deletes an exception type.