Overhaul scaninc to work recursively

This also fixes the bug where scaninc would ignore #include lines
in assembly files.
This commit is contained in:
Phlosioneer
2019-03-03 21:59:57 -05:00
committed by huderlem
parent 0081474018
commit 105e1721d6
10 changed files with 238 additions and 71 deletions

View File

@@ -64,7 +64,8 @@ IncDirectiveType AsmFile::ReadUntilIncDirective(std::string &path)
IncDirectiveType incDirectiveType = IncDirectiveType::None;
if (PeekChar() == '.')
char c = PeekChar();
if (c == '.' || c == '#')
{
m_pos++;