MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / addHostGlobal

Method addHostGlobal

include/runtime/instance/module.h:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 std::move(Mem));
153 }
154 void addHostGlobal(std::string_view Name,
155 std::unique_ptr<GlobalInstance> &&Glob) {
156 std::unique_lock Lock(Mutex);
157 unsafeAddHostInstance(Name, OwnedGlobInsts, GlobInsts, ExpGlobals,
158 std::move(Glob));
159 }
160
161 /// Find and get the exported instance by name.
162 FunctionInstance *findFuncExports(std::string_view ExtName) const noexcept {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected