wasm_export.h: Fix struct wasm_val_t (#2435)

Struct wasm_val_t should be same in wasm_export.h and wasm_c_api.h.

And fix some invalid calls to aot function in LLVM JIT mode.
This commit is contained in:
Wenyong Huang
2023-08-09 09:43:20 +08:00
committed by GitHub
parent 7e3a29d5e4
commit 8b5bb0009d
2 changed files with 13 additions and 60 deletions

View File

@ -186,6 +186,7 @@ enum wasm_valkind_enum {
#ifndef WASM_VAL_T_DEFINED
#define WASM_VAL_T_DEFINED
struct wasm_ref_t;
typedef struct wasm_val_t {
wasm_valkind_t kind;
@ -197,6 +198,7 @@ typedef struct wasm_val_t {
double f64;
/* represent a foreign object, aka externref in .wat */
uintptr_t foreign;
struct wasm_ref_t *ref;
} of;
} wasm_val_t;
#endif