pub unsafe extern "C" fn WasmEdge_ExecutorRegisterImportWithAlias(
Cxt: *mut WasmEdge_ExecutorContext,
StoreCxt: *mut WasmEdge_StoreContext,
ImportCxt: *const WasmEdge_ModuleInstanceContext,
ModuleName: WasmEdge_String,
) -> WasmEdge_ResultExpand description
Register a module instance into a store under the given alias name.
Similar to WasmEdge_ExecutorRegisterImport(), but registers the module under the provided ModuleName instead of the module’s own name. This is useful for making a module accessible under a different import namespace.
\param Cxt the WasmEdge_ExecutorContext. \param StoreCxt the WasmEdge_StoreContext to store the module instance. \param ImportCxt the WasmEdge_ModuleInstanceContext to register. \param ModuleName the WasmEdge_String of module name to register as.
\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error
message.