| 13009 | |
| 13010 | |
| 13011 | ResultType 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 |
no test coverage detected