Add API wasm_runtime_set_module_inst (#1286)

Add API wasm_runtime_set_module_inst, per request from #1275
This commit is contained in:
Wenyong Huang
2022-07-14 11:36:11 +08:00
committed by GitHub
parent d08e13c5ad
commit 0ec27af9df
5 changed files with 38 additions and 0 deletions

View File

@ -255,6 +255,10 @@ wasm_exec_env_get_cur_frame(WASMExecEnv *exec_env)
struct WASMModuleInstanceCommon *
wasm_exec_env_get_module_inst(WASMExecEnv *exec_env);
void
wasm_exec_env_set_module_inst(
WASMExecEnv *exec_env, struct WASMModuleInstanceCommon *const module_inst);
void
wasm_exec_env_set_thread_info(WASMExecEnv *exec_env);