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

Function mkOpt

test/component/ComponentValidatorTest.cpp:1092–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090}
1091
1092inline AST::Component::CanonOpt mkOpt(ComponentCanonOptCode Code,
1093 uint32_t Idx = 0) {
1094 AST::Component::CanonOpt O;
1095 O.setCode(Code);
1096 O.setIndex(Idx);
1097 return O;
1098}
1099
1100// Helper: build a Component with an imported component func (func index 0).
1101inline AST::Component::Component makeCompWithImportedFunc() {

Callers 1

TESTFunction · 0.85

Calls 2

setCodeMethod · 0.45
setIndexMethod · 0.45

Tested by

no test coverage detected