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

Method CatchThis

source/script.cpp:13301–13310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13299
13300
13301bool Line::CatchThis(ExprTokenType &aThrown) // ACT_CATCH
13302{
13303 auto args = (CatchStatementArgs *)mAttribute;
13304 if (!args || !args->prototype_count)
13305 return Object::HasBase(aThrown, ErrorPrototype::Error);
13306 for (int i = 0; i < args->prototype_count; ++i)
13307 if (Object::HasBase(aThrown, args->prototype[i]))
13308 return true;
13309 return false;
13310}
13311
13312
13313

Callers 1

ExecUntilMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected