MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Call

Method Call

source/script_object.cpp:2085–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2083//
2084
2085bool EnumBase::Call(ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount)
2086{
2087 Var *var0 = ParamIndexToOutputVar(0);
2088 Var *var1 = ParamIndexToOutputVar(1);
2089 auto result = Next(var0, var1);
2090 switch (result)
2091 {
2092 case CONDITION_TRUE:
2093 case CONDITION_FALSE:
2094 aResultToken.SetValue(result == CONDITION_TRUE);
2095 return true;
2096 default: // Probably FAIL or EARLY_EXIT.
2097 aResultToken.SetExitResult(result);
2098 return false;
2099 }
2100}
2101
2102
2103ResultType IndexEnumerator::Next(Var *var0, Var *var1)

Callers 4

ControlWmNotifyMethod · 0.45
ExitAppMethod · 0.45
UnhandledExceptionMethod · 0.45
MsgSleepFunction · 0.45

Calls 7

InitNewThreadFunction · 0.85
CallMethodFunction · 0.85
SetValueMethod · 0.80
SetExitResultMethod · 0.80
ToParamsMethod · 0.80
LengthMethod · 0.45
InvokeMethod · 0.45

Tested by

no test coverage detected