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

Method addDefinedType

include/runtime/instance/module.h:238–242  ·  view source on GitHub ↗

Create and copy the defined type to this module instance.

Source from the content-addressed store, hash-verified

236
237 /// Create and copy the defined type to this module instance.
238 void addDefinedType(const AST::SubType &SType) {
239 std::unique_lock Lock(Mutex);
240 OwnedTypes.push_back(std::make_unique<AST::SubType>(SType));
241 Types.push_back(OwnedTypes.back().get());
242 }
243
244 /// Create and add instances to this module instance.
245 template <typename... Args> void addFunc(Args &&...Values) {

Callers 2

instantiateMethod · 0.80
instantiateMethod · 0.80

Calls 2

backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected