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

Method LoadIncludedFile

source/script.cpp:1862–1873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1860
1861
1862ResultType 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

Callers

nothing calls this directly

Calls 15

ctoupperFunction · 0.85
omit_trailing_whitespaceFunction · 0.85
omit_leading_whitespaceFunction · 0.85
TextToVKFunction · 0.85
IsMouseVKFunction · 0.85
sntprintfFunction · 0.85
MsgBoxFunction · 0.85
IsClassDefinitionFunction · 0.85
ClassHasOpenBraceFunction · 0.85
RemoveBufChar0Function · 0.85
swapFunction · 0.85
AddVariantMethod · 0.80

Tested by

no test coverage detected