| 1860 | |
| 1861 | |
| 1862 | ResultType Script::LoadIncludedFile(LPCTSTR aFileSpec, bool aAllowDuplicateInclude, bool aIgnoreLoadFailure) |
| 1863 | // Returns OK or FAIL. |
| 1864 | { |
| 1865 | int source_file_index = Line::sSourceFileCount; // Set early in case of >PRESCRIPT<. |
| 1866 | TextStream *ts = nullptr; |
| 1867 | ResultType result = OpenIncludedFile(ts, aFileSpec, aAllowDuplicateInclude, aIgnoreLoadFailure); |
| 1868 | if (result == CONDITION_TRUE) |
| 1869 | result = LoadIncludedFile(ts, source_file_index); |
| 1870 | if (ts) |
| 1871 | delete ts; |
| 1872 | return result; |
| 1873 | } |
| 1874 | |
| 1875 | |
| 1876 |
nothing calls this directly
no test coverage detected