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

Function fxPrintBuilders

xs/tools/xslSlot.c:890–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890void fxPrintBuilders(txMachine* the, FILE* file)
891{
892 txLinker* linker = (txLinker*)(the->context);
893 txLinkerBuilder* linkerBuilder = linker->firstBuilder;
894 fprintf(file, "static const xsHostBuilder gxBuilders[%d] = {\n", linker->builderCount);
895 while (linkerBuilder) {
896 txString name = fxGetCallbackName(the, linkerBuilder->host.callback);
897 fprintf(file, "\t{ %s, %d, ", name, linkerBuilder->host.length);
898 fxPrintID(the, file, linkerBuilder->host.id);
899 fprintf(file, " },\n");
900 linkerBuilder = linkerBuilder->nextBuilder;
901 }
902 fprintf(file, "};\n\n");
903}
904
905void fxPrintHeap(txMachine* the, FILE* file, txInteger count)
906{

Callers 1

mainFunction · 0.85

Calls 2

fxGetCallbackNameFunction · 0.85
fxPrintIDFunction · 0.70

Tested by

no test coverage detected