MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / addMCRunCFile

Method addMCRunCFile

tools/ffi.js:275–282  ·  view source on GitHub ↗
(tool, signatures)

Source from the content-addressed store, hash-verified

273 tool.preloads.push("mc" + tool.slash + "ffi.xsb");
274 }
275 addMCRunCFile(tool, signatures) {
276 const source = tool.tmpPath + tool.slash + "mc.ffi.c";
277 const file = new TabFile(source, tool);
278 this.generateCFile(file, signatures, true, tool.windows);
279 file.close();
280 const target = "mc.ffi.c.o";
281 tool.cFiles.push({ target, source });
282 }
283 addMCRunCFolder(tool) {
284 const folders = tool.cFolders;
285 const directory = tool.xsPath + tool.slash + "includes";

Callers 1

mcRunMethod · 0.95

Calls 3

generateCFileMethod · 0.95
closeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected