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

Function fxFindInteger

modules/piu/All/piuApplication.c:788–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788xsBooleanValue fxFindInteger(xsMachine* the, xsSlot* slot, xsIdentifier id, xsIntegerValue* value)
789{
790 xsBooleanValue result;
791 xsOverflow(-1);
792 fxPush(*slot);
793 fxGetID(the, id);
794 if (fxTypeOf(the, the->stack) != xsUndefinedType) {
795 *value = fxToInteger(the, the->stack);
796 result = 1;
797 }
798 else
799 result = 0;
800 the->stack++;
801 return result;
802}
803
804xsBooleanValue fxFindNumber(xsMachine* the, xsSlot* slot, xsIdentifier id, xsNumberValue* value)
805{

Callers

nothing calls this directly

Calls 3

fxGetIDFunction · 0.85
fxTypeOfFunction · 0.85
fxToIntegerFunction · 0.85

Tested by

no test coverage detected