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

Function TokenToToggleValue

source/script2.cpp:16841–16851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16839
16840
16841ToggleValueType TokenToToggleValue(ExprTokenType &aToken)
16842{
16843 if (TokenIsNumeric(aToken))
16844 switch (TokenToInt64(aToken)) // Reserve other values for potential future use by requiring exact match.
16845 {
16846 case 1: return TOGGLED_ON;
16847 case 0: return TOGGLED_OFF;
16848 case -1: return TOGGLE;
16849 }
16850 return TOGGLE_INVALID;
16851}
16852
16853
16854

Callers

nothing calls this directly

Calls 2

TokenIsNumericFunction · 0.85
TokenToInt64Function · 0.85

Tested by

no test coverage detected