[][src]Function wamr_sys::wasm_runtime_create_exec_env

pub unsafe extern "C" fn wasm_runtime_create_exec_env(
    module_inst: wasm_module_inst_t,
    stack_size: u32
) -> wasm_exec_env_t

Create execution environment for a WASM module instance.

@param module_inst the module instance @param stack_size the stack size to execute a WASM function

@return the execution environment, NULL if failed, e.g. invalid stack size is passed