MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / writeArgumentConversion

Method writeArgumentConversion

tools/ffi.js:138–140  ·  view source on GitHub ↗
(file, i)

Source from the content-addressed store, hash-verified

136 file.write(`*arg${ i }`);
137 }
138 writeArgumentConversion(file, i) {
139 file.line(`char** arg${ i } = XS->toStringHandle(the, mxArgv(${ i }));`);
140 }
141 writeResultConversion(file) {
142 if (this.name.startsWith("const ")) {
143 file.line("XS->fromStringX(the, mxResult, (txString)result);");

Callers

nothing calls this directly

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected