Wasmtime
types/exnref.h
Go to the documentation of this file.
1
5#ifndef WASMTIME_TYPES_EXNREF_H
6#define WASMTIME_TYPES_EXNREF_H
7
8#include <wasm.h>
9#include <wasmtime/error.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16typedef struct wasmtime_exn_type wasmtime_exn_type_t;
17
22WASM_API_EXTERN wasmtime_error_t *
24 const wasm_valtype_vec_t *params,
26
29
32WASM_API_EXTERN wasmtime_exn_type_t *
34
36WASM_API_EXTERN wasm_tagtype_t *
38
39#ifdef __cplusplus
40} // extern "C"
41#endif
42
43#endif // 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.