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

Method writeArgument

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

Source from the content-addressed store, hash-verified

133class StringType extends Type {
134 get tsType() { return "string"; }
135 writeArgument(file, i) {
136 file.write(`*arg${ i }`);
137 }
138 writeArgumentConversion(file, i) {
139 file.line(`char** arg${ i } = XS->toStringHandle(the, mxArgv(${ i }));`);
140 }

Callers

nothing calls this directly

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected