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

Method ConvertActionType

source/script.cpp:5025–5035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5023
5024
5025inline ActionTypeType Script::ConvertActionType(LPCTSTR aActionTypeString)
5026// inline since it's called so often, but don't keep it in the .h due to #include issues.
5027{
5028 // For the loop's index:
5029 // Use an int rather than ActionTypeType since it's sure to be large enough to go beyond
5030 // 256 if there happen to be exactly 256 actions in the array:
5031 for (int action_type = ACT_FIRST_NAMED_ACTION; action_type <= ACT_LAST_NAMED_ACTION; ++action_type)
5032 if (!_tcsicmp(aActionTypeString, g_act[action_type].Name)) // Match found.
5033 return action_type;
5034 return ACT_INVALID; // On failure to find a match.
5035}
5036
5037
5038

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected