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

Function fxGetTypeDispatchIndex

xs/tools/xslSlot.c:432–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430
431extern const txTypeDispatch gxTypeDispatches[];
432txInteger fxGetTypeDispatchIndex(txTypeDispatch* dispatch)
433{
434 txInteger i = 0;
435 while (i < mxTypeArrayCount) {
436 if (dispatch == &gxTypeDispatches[i])
437 return i;
438 i++;
439 }
440 fprintf(stderr, "dispatch %p %p\n", dispatch, &gxTypeDispatches[0]);
441 return -1;
442}
443
444extern const txTypeAtomics gxTypeAtomics[];
445txInteger fxGetTypeAtomicsIndex(txTypeAtomics* atomics)

Callers 1

fxPrintSlotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected