wamr_sys

Function wasm_runtime_get_running_mode

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

Get the running mode of a WASM module instance, if no running mode is explicitly set the default running mode of runtime will be used and returned. Note that it only makes sense when the input is a wasm bytecode file: for the AOT file, this function always returns 0.

@param module_inst the WASM module instance to query for running mode

@return the running mode this module instance currently use