disable escape sequences for #line and #error

This commit is contained in:
Jeff Bolz 2020-03-09 21:09:18 -05:00
parent f333272eb5
commit 13444545a9
5 changed files with 10 additions and 4 deletions

3
glslang/MachineIndependent/preprocessor/PpContext.cpp Executable file → Normal file
View file

@ -87,7 +87,8 @@ namespace glslang {
TPpContext::TPpContext(TParseContextBase& pc, const std::string& rootFileName, TShader::Includer& inclr) :
preamble(0), strings(0), previous_token('\n'), parseContext(pc), includer(inclr), inComment(false),
rootFileName(rootFileName),
currentSourceFile(rootFileName)
currentSourceFile(rootFileName),
disableEscapeSequences(false)
{
ifdepth = 0;
for (elsetracker = 0; elsetracker < maxIfNesting; elsetracker++)