Wasmtime
wat.h
Go to the documentation of this file.
1
7#ifndef WASMTIME_WAT_H
8#define WASMTIME_WAT_H
9
10#include <wasmtime/conf.h>
11#include <wasmtime/error.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#ifdef WASMTIME_FEATURE_WAT
18
34WASM_API_EXTERN wasmtime_error_t *
35wasmtime_wat2wasm(const char *wat, size_t wat_len, wasm_byte_vec_t *ret);
36
37#endif // WASMTIME_FEATURE_WAT
38
39#ifdef __cplusplus
40} // extern "C"
41#endif
42
43#endif // WASMTIME_WAT_H
Build-time defines for how the C API was built.
Definition and accessors of wasmtime_error_t.
A list of bytes.
Definition: wasm.h:102
Errors generated by Wasmtime.
wasmtime_error_t * wasmtime_wat2wasm(const char *wat, size_t wat_len, wasm_byte_vec_t *ret)
Converts from the text format of WebAssembly to the binary format.