pub unsafe extern "C" fn WasmEdge_VMGetActiveModule(
Cxt: *const WasmEdge_VMContext,
) -> *const WasmEdge_ModuleInstanceContext
Expand description
Get the current instantiated module in VM.
After instantiating a module instance into the VM, developers can call this
API to get the active anonymous module instance to retrieve the exported
instances. The module instance context links to the context owned by the VM
context. The caller should NOT call the WasmEdge_ModuleInstanceDelete
.
This function is thread-safe.
\param Cxt the WasmEdge_VMContext.
\returns pointer to the module instance context. NULL if not found.