wamr_sys

Function wasm_runtime_set_module_inst

Source
pub unsafe extern "C" fn wasm_runtime_set_module_inst(
    exec_env: wasm_exec_env_t,
    module_inst: wasm_module_inst_t,
)
Expand description

Set WASM module instance of execution environment Caution: normally the module instance is bound with the execution environment one by one, if multiple module instances want to share to the same execution environment, developer should be responsible for the backup and restore of module instance

@param exec_env the execution environment @param module_inst the WASM module instance to set