mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 15:13:42 +01:00
allow CRLF line endings in asm files for preproc
This commit is contained in:
parent
ad941680d8
commit
b420b98d63
@ -475,9 +475,11 @@ void AsmFile::ExpectEmptyRestOfLine()
|
|||||||
m_lineStart = m_pos;
|
m_lineStart = m_pos;
|
||||||
m_lineNum++;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user