MCPcopy Create free account
hub / github.com/WebAssembly/wabt / _WriteModuleInstances

Method _WriteModuleInstances

test/run-spec-wasm2c.py:268–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

266 self._WriteModuleInitCall(command, False)
267
268 def _WriteModuleInstances(self):
269 idx = 0
270 for command in self.commands:
271 if IsModuleCommand(command):
272 self.out_file.write('w2c_%s %s;\n' % (self.GetModulePrefix(idx), self.GetModuleInstanceName(idx)))
273 idx += 1
274
275 def _WriteModuleCleanUps(self):
276 for idx in range(self.module_idx):

Callers 1

WriteMethod · 0.95

Calls 3

GetModulePrefixMethod · 0.95
GetModuleInstanceNameMethod · 0.95
IsModuleCommandFunction · 0.85

Tested by

no test coverage detected