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

Function fxFindString

modules/piu/All/piuApplication.c:820–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820xsBooleanValue fxFindString(xsMachine* the, xsSlot* slot, xsIdentifier id, xsStringValue* value)
821{
822 xsBooleanValue result;
823 xsOverflow(-1);
824 fxPush(*slot);
825 fxGetID(the, id);
826 if (fxTypeOf(the, the->stack) != xsUndefinedType) {
827 *value = fxToString(the, the->stack);
828 result = 1;
829 }
830 else
831 result = 0;
832 the->stack++;
833 return result;
834}
835
836xsBooleanValue fxFindResult(xsMachine* the, xsSlot* slot, xsIdentifier id)
837{

Callers

nothing calls this directly

Calls 3

fxGetIDFunction · 0.85
fxTypeOfFunction · 0.85
fxToStringFunction · 0.85

Tested by

no test coverage detected