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

Method CriticalError

source/script.cpp:13011–13021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13009
13010
13011ResultType Script::CriticalError(LPCTSTR aErrorText, LPCTSTR aExtraInfo)
13012{
13013 g->ExcptMode = EXCPTMODE_NONE; // Do not throw an exception.
13014 if (mCurrLine)
13015 mCurrLine->LineError(aErrorText, CRITICAL_ERROR, aExtraInfo);
13016 // mCurrLine should always be non-NULL during runtime, and CRITICAL_ERROR should
13017 // cause LineError() to exit even if an OnExit routine is present, so this is here
13018 // mainly for maintainability.
13019 TerminateApp(EXIT_CRITICAL, 0);
13020 return FAIL; // Never executed.
13021}
13022
13023
13024

Callers 5

FindOrCreateFontMethod · 0.80
CriticalFailMethod · 0.80
__exceptFunction · 0.80
SetLengthFromContentsMethod · 0.80
BIF_DECLFunction · 0.80

Calls 1

LineErrorMethod · 0.80

Tested by

no test coverage detected