Wasmtime
types/val.hh File Reference
#include <memory>
#include <ostream>
#include <wasm.h>
#include <wasmtime/val.h>

Go to the source code of this file.

Data Structures

class  wasmtime::ValType
 Type information about a WebAssembly value. More...
 
class  wasmtime::ValType::Ref
 Non-owning reference to a ValType, must not be used after the original ValType is deleted. More...
 
class  wasmtime::ValType::ListRef
 Non-owning reference to a list of ValType instances. Must not be used after the original owner is deleted. More...
 

Macros

#define WASMTIME_FOR_EACH_VAL_KIND(X)
 

Enumerations

enum class  wasmtime::ValKind {
  I32 , I64 , F32 , F64 ,
  V128 , ExternRef , FuncRef , AnyRef
}
 Different kinds of types accepted by Wasmtime. More...
 

Functions

std::ostream & wasmtime::operator<< (std::ostream &os, const ValKind &e)
 Used to print a ValKind.
 

Macro Definition Documentation

◆ WASMTIME_FOR_EACH_VAL_KIND

#define WASMTIME_FOR_EACH_VAL_KIND (   X)
Value:
X(I32, "i32", WASM_I32) \
X(I64, "i64", WASM_I64) \
X(F32, "f32", WASM_F32) \
X(F64, "f64", WASM_F64) \
X(ExternRef, "externref", WASM_EXTERNREF) \
X(FuncRef, "funcref", WASM_FUNCREF) \
X(AnyRef, "anyref", WASMTIME_ANYREF) \
X(V128, "v128", WASMTIME_V128)
#define WASMTIME_ANYREF
Value of wasmtime_valkind_t meaning that wasmtime_val_t is an anyref.
Definition: val.h:303
#define WASMTIME_V128
Value of wasmtime_valkind_t meaning that wasmtime_val_t is a v128.
Definition: val.h:294

Helper X macro to construct statement for each enumerator in ValKind. X(enumerator in ValKind, name string, enumerator in wasm_valkind_t)

Enumeration Type Documentation

◆ ValKind

enum class wasmtime::ValKind
strong

Different kinds of types accepted by Wasmtime.

Enumerator
I32 

WebAssembly's i32 type.

I64 

WebAssembly's i64 type.

F32 

WebAssembly's f32 type.

F64 

WebAssembly's f64 type.

V128 

WebAssembly's v128 type from the simd proposal.

ExternRef 

WebAssembly's externref type from the reference types.

FuncRef 

WebAssembly's funcref type from the reference types.

AnyRef 

WebAssembly's anyref type.