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 authored and huderlem committed 2019-03-07 08:46:55 -06:00
1 parent 0081474018
commit 105e1721d6
10 files changed
+238 -71

No files matched your search

+2 -1
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++;