wasm_runtime_register_module

Function wasm_runtime_register_module 

Source
pub unsafe extern "C" fn wasm_runtime_register_module(
    module_name: *const c_char,
    module: wasm_module_t,
    error_buf: *mut c_char,
    error_buf_size: u32,
) -> bool
Expand description

Give the “module” a name “module_name”. Can not assign a new name to a module if it already has a name

@param module_name indicate a name @param module the target module @param error_buf output of the exception info @param error_buf_size the size of the exception string

@return true means success, false means failed