diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 01:19:32 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 01:19:32 -0500 |
commit | 538c1d0efda7ac0f2a96fd9168f0e503a478383e (patch) | |
tree | 58234113f77aab7a8aa388b790828c4caecc52da /tools/preproc/asm_file.cpp | |
parent | 8e8677f1e487a38154baea14ec313bc8c63fe28d (diff) |
Sync preproc with pokeemerald
Diffstat (limited to 'tools/preproc/asm_file.cpp')
-rw-r--r-- | tools/preproc/asm_file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index 07921321d..7756cadc5 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -476,9 +476,11 @@ void AsmFile::ExpectEmptyRestOfLine() m_lineStart = m_pos; m_lineNum++; } - else if (m_buffer[m_pos] == '\r') + else if (m_buffer[m_pos] == '\r' && m_buffer[m_pos + 1] == '\n') { - RaiseError("only Unix-style LF newlines are supported"); + m_pos += 2; + m_lineStart = m_pos; + m_lineNum++; } else { |