Remove get_module_inst() and fix issue of call native (#120)

This commit is contained in:
wenyongh
2019-09-11 15:56:47 +08:00
committed by GitHub
parent 473f96525b
commit ff0267b7e6
6 changed files with 164 additions and 97 deletions

View File

@ -9,6 +9,7 @@ extern "C" {
#include "bh_platform.h"
#include "lvgl.h"
#include "wasm_export.h"
#define OBJ_ARG_NUM_MAX 4
#define PTR_ARG_NUM_MAX 4
@ -66,6 +67,9 @@ void wgl_native_func_call(WGLNativeFuncDef *funcs,
uint32 argv_offset,
uint32 argc);
wasm_module_inst_t wasm_runtime_get_current_module_inst();
#define get_module_inst() wasm_runtime_get_current_module_inst()
#ifdef __cplusplus
}
#endif