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

Function fxFindNumber

modules/piu/All/piuApplication.c:804–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804xsBooleanValue fxFindNumber(xsMachine* the, xsSlot* slot, xsIdentifier id, xsNumberValue* value)
805{
806 xsBooleanValue result;
807 xsOverflow(-1);
808 fxPush(*slot);
809 fxGetID(the, id);
810 if (fxTypeOf(the, the->stack) != xsUndefinedType) {
811 *value = fxToNumber(the, the->stack);
812 result = 1;
813 }
814 else
815 result = 0;
816 the->stack++;
817 return result;
818}
819
820xsBooleanValue fxFindString(xsMachine* the, xsSlot* slot, xsIdentifier id, xsStringValue* value)
821{

Callers

nothing calls this directly

Calls 3

fxGetIDFunction · 0.85
fxTypeOfFunction · 0.85
fxToNumberFunction · 0.85

Tested by

no test coverage detected