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

Function fxIntegerToIndex

xs/sources/xsCommon.c:1277–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275}
1276
1277txFlag fxIntegerToIndex(void* the, txInteger theInteger, txIndex* theIndex)
1278{
1279 if (0 <= theInteger) {
1280 *theIndex = (txIndex)theInteger;
1281 return 1;
1282 }
1283 return 0;
1284}
1285
1286txFlag fxNumberToIndex(void* the, txNumber number, txIndex* theIndex)
1287{

Callers 5

fxRunIDFunction · 0.85
fxAtFunction · 0.85
fxPropertyNameFunction · 0.85
fxObjectBindingFunction · 0.85
fxToJSONKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected