Wasmtime
wasmtime.hh File Reference
#include <any>
#include <array>
#include <cstdio>
#include <initializer_list>
#include <iosfwd>
#include <limits>
#include <memory>
#include <optional>
#include <ostream>
#include <variant>
#include <vector>
#include <wasmtime.h>
#include <wasmtime/config.hh>
#include <wasmtime/engine.hh>
#include <wasmtime/error.hh>
#include <wasmtime/module.hh>
#include <wasmtime/store.hh>
#include <wasmtime/trap.hh>
#include <wasmtime/types.hh>
#include <wasmtime/wasi.hh>
#include <wasmtime/val.hh>

Go to the source code of this file.

Data Structures

class  wasmtime::Caller
 Structure provided to host functions to lookup caller information or acquire a Store::Context. More...
 
class  wasmtime::Func
 Representation of a WebAssembly function. More...
 
class  wasmtime::TypedFunc< Params, Results >
 A version of a WebAssembly Func where the type signature of the function is statically known. More...
 
class  wasmtime::Global
 A WebAssembly global. More...
 
class  wasmtime::Table
 A WebAssembly table. More...
 
class  wasmtime::Memory
 A WebAssembly linear memory. More...
 
class  wasmtime::Instance
 A WebAssembly instance. More...
 
class  wasmtime::Linker
 Helper class for linking modules together with name-based resolution. More...
 

Macros

#define NATIVE_WASM_TYPE(native, valkind, field)
 

Typedefs

typedef std::variant< Func, Global, Memory, Table > wasmtime::Extern
 Representation of an external WebAssembly item.
 

Macro Definition Documentation

◆ NATIVE_WASM_TYPE

#define NATIVE_WASM_TYPE (   native,
  valkind,
  field 
)
Value:
template <> struct WasmType<native> { \
static const bool valid = true; \
static const ValKind kind = ValKind::valkind; \
static void store(Store::Context cx, wasmtime_val_raw_t *p, \
const native &t) { \
p->field = t; \
} \
static native load(Store::Context cx, wasmtime_val_raw_t *p) { \
return p->field; \
} \
};
ValKind
Different kinds of types accepted by Wasmtime.
Definition: types/val.hh:16
Container for possible wasm values.
Definition: val.h:372

Helper macro to define WasmType definitions for primitive types like int32_t and such.