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

Function fxFindBoolean

modules/piu/All/piuApplication.c:772–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772xsBooleanValue fxFindBoolean(xsMachine* the, xsSlot* slot, xsIdentifier id, xsBooleanValue* value)
773{
774 xsBooleanValue result;
775 xsOverflow(-1);
776 fxPush(*slot);
777 fxGetID(the, id);
778 if (fxTypeOf(the, the->stack) != xsUndefinedType) {
779 *value = fxToBoolean(the, the->stack);
780 result = 1;
781 }
782 else
783 result = 0;
784 the->stack++;
785 return result;
786}
787
788xsBooleanValue fxFindInteger(xsMachine* the, xsSlot* slot, xsIdentifier id, xsIntegerValue* value)
789{

Callers

nothing calls this directly

Calls 3

fxGetIDFunction · 0.85
fxTypeOfFunction · 0.85
fxToBooleanFunction · 0.85

Tested by

no test coverage detected