Preproc: output string literals, and fix escape bug

This commit is contained in:
Mateon1
2024-10-14 23:21:23 +02:00
parent c9521067f0
commit 1cdba39aa0
2 changed files with 17 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ std::string StringParser::ReadCharOrEscape()
if (sequence.length() == 0)
RaiseError("no mapping exists for double quote");
m_pos++;
return sequence;
}
else if (m_buffer[m_pos] == '\\')
@@ -53,6 +54,7 @@ std::string StringParser::ReadCharOrEscape()
if (sequence.length() == 0)
RaiseError("no mapping exists for backslash");
m_pos++;
return sequence;
}
}