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

Function fxGetTypeAtomicsIndex

xs/tools/xslSlot.c:445–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444extern const txTypeAtomics gxTypeAtomics[];
445txInteger fxGetTypeAtomicsIndex(txTypeAtomics* atomics)
446{
447 txInteger i = 0;
448 while (i < mxTypeArrayCount) {
449 if (atomics == &gxTypeAtomics[i])
450 return i;
451 i++;
452 }
453 fprintf(stderr, "atomics %p %p\n", atomics, &gxTypeAtomics[0]);
454 return -1;
455}
456
457void fxLinkerScriptCallback(txMachine* the)
458{

Callers 1

fxPrintSlotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected