wamr_sys

Function wasm_runtime_set_running_mode

Source
pub unsafe extern "C" fn wasm_runtime_set_running_mode(
    module_inst: wasm_module_inst_t,
    running_mode: RunningMode,
) -> bool
Expand description

Set the running mode of a WASM module instance, override the default running mode of the runtime. Note that it only makes sense when the input is a wasm bytecode file: for the AOT file, runtime always runs it with AOT engine, and this function always returns true.

@param module_inst the WASM module instance to set running mode @param running_mode the running mode to set

@return true if success, false otherwise