Wasmtime
tag.h
Go to the documentation of this file.
1
12#ifndef WASMTIME_TAG_H
13#define WASMTIME_TAG_H
14
15#include <stddef.h>
16#include <wasm.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
30
39#define WASMTIME_EXTERNTYPE_TAG 4
40
51WASM_API_EXTERN wasmtime_tagtype_t *
53
56
59WASM_API_EXTERN wasmtime_tagtype_t *
61
68WASM_API_EXTERN wasm_functype_t *
70
72WASM_API_EXTERN wasm_externtype_t *
74
77WASM_API_EXTERN const wasm_externtype_t *
79
82WASM_API_EXTERN wasmtime_tagtype_t *
84
87WASM_API_EXTERN const wasmtime_tagtype_t *
89
90#ifdef __cplusplus
91} // extern "C"
92#endif
93
94#endif // WASMTIME_TAG_H
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).