diff options
author | shinny <shinny456@users.noreply.github.com> | 2020-06-02 14:51:57 -0400 |
---|---|---|
committer | shinny <shinny456@users.noreply.github.com> | 2020-06-02 14:51:57 -0400 |
commit | 4f88655a79bb2d8f10bdce2841f427c0e27040bd (patch) | |
tree | b750e64b62cec61ca3a43da6aa7d4e3b37e64c9e /tools/preproc/asm_file.cpp | |
parent | bc504264f1e54b3c1e482710c592e5549828bfe1 (diff) |
update tools
Diffstat (limited to 'tools/preproc/asm_file.cpp')
-rw-r--r-- | tools/preproc/asm_file.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index 383010a..7756cad 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -20,6 +20,7 @@ #include <cstdio> #include <cstdarg> +#include <stdexcept> #include "preproc.h" #include "asm_file.h" #include "char_util.h" @@ -475,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 { |