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

Method addCoreModule

include/validator/component_context.h:148–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 // ==========================================================================
147
148 uint32_t addCoreModule(const AST::Module &M) noexcept {
149 auto &V = getCurrentContext().CoreModules;
150 uint32_t Idx = static_cast<uint32_t>(V.size());
151 V.push_back(&M);
152 return Idx;
153 }
154
155 uint32_t addCoreModule() noexcept {
156 auto &V = getCurrentContext().CoreModules;

Callers 1

validateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected