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

Function fxPrintAddress

xs/tools/xslSlot.c:872–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870}
871
872void fxPrintAddress(txMachine* the, FILE* file, txSlot* slot)
873{
874 if (slot) {
875 txLinker* linker = (txLinker*)(the->context);
876 txLinkerProjection* projection = linker->firstProjection;
877 while (projection) {
878 if ((projection->heap < slot) && (slot < projection->limit)) {
879 fprintf(file, "(txSlot*)&gxHeap[%d]", (int)projection->indexes[slot - projection->heap]);
880 return;
881 }
882 projection = projection->nextProjection;
883 }
884 fprintf(file, "OOPS");
885 }
886 else
887 fprintf(file, "NULL");
888}
889
890void fxPrintBuilders(txMachine* the, FILE* file)
891{

Callers 3

fxPrintHeapFunction · 0.85
fxPrintSlotFunction · 0.85
fxPrintTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected