| 12550 | |
| 12551 | |
| 12552 | Line *Line::PreparseError(LPTSTR aErrorText, LPTSTR aExtraInfo) |
| 12553 | // Returns a different type of result for use with the Pre-parsing methods. |
| 12554 | { |
| 12555 | // Make all preparsing errors critical because the runtime reliability |
| 12556 | // of the program relies upon the fact that the aren't any kind of |
| 12557 | // problems in the script (otherwise, unexpected behavior may result). |
| 12558 | // Update: It's okay to return FAIL in this case. CRITICAL_ERROR should |
| 12559 | // be avoided whenever OK and FAIL are sufficient by themselves, because |
| 12560 | // otherwise, callers can't use the NOT operator to detect if a function |
| 12561 | // failed (since FAIL is value zero, but CRITICAL_ERROR is non-zero): |
| 12562 | LineError(aErrorText, FAIL, aExtraInfo); |
| 12563 | return NULL; // Always return NULL because the callers use it as their return value. |
| 12564 | } |
| 12565 | |
| 12566 | |
| 12567 | #ifdef CONFIG_DEBUGGER |