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

Function fxIDToString

xs/sources/xsSymbol.c:498–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void fxIDToString(txMachine* the, txID id, txString theBuffer, txSize theSize)
499{
500 if (id != XS_NO_ID) {
501 txBoolean adorn;
502 txString string = fxGetKeyString(the, id, &adorn);
503 if (adorn)
504 c_snprintf(theBuffer, theSize, "[%s]", string);
505 else
506 c_snprintf(theBuffer, theSize, "%s", string);
507 }
508 else {
509 theBuffer[0] = '?';
510 theBuffer[1] = 0;
511 }
512}

Callers 7

fxCheckModuleFlagFunction · 0.85
fxLinkTransferFunction · 0.85
fxModuleFindPropertyFunction · 0.85
fxEchoPropertyInstanceFunction · 0.85
fxEchoTypedArrayFunction · 0.85

Calls 1

fxGetKeyStringFunction · 0.85

Tested by

no test coverage detected