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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user