| 11625 | |
| 11626 | |
| 11627 | inline Line *Line::PreparseError(char *aErrorText) |
| 11628 | // Returns a different type of result for use with the Pre-parsing methods. |
| 11629 | { |
| 11630 | // Make all preparsing errors critical because the runtime reliability |
| 11631 | // of the program relies upon the fact that the aren't any kind of |
| 11632 | // problems in the script (otherwise, unexpected behavior may result). |
| 11633 | // Update: It's okay to return FAIL in this case. CRITICAL_ERROR should |
| 11634 | // be avoided whenever OK and FAIL are sufficient by themselves, because |
| 11635 | // otherwise, callers can't use the NOT operator to detect if a function |
| 11636 | // failed (since FAIL is value zero, but CRITICAL_ERROR is non-zero): |
| 11637 | LineError(aErrorText, FAIL); |
| 11638 | return NULL; // Always return NULL because the callers use it as their return value. |
| 11639 | } |
| 11640 | |
| 11641 | |
| 11642 |
no outgoing calls
no test coverage detected