wpp: Reset lexer state after unexpected end of file.
This commit is contained in:
parent
2c5a7743be
commit
1d9bb50230
|
@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...)
|
|||
if(!bep)
|
||||
{
|
||||
if(YY_START != INITIAL)
|
||||
{
|
||||
ppy_error("Unexpected end of file during preprocessing");
|
||||
BEGIN(INITIAL);
|
||||
}
|
||||
yyterminate();
|
||||
}
|
||||
else if(bep->should_pop == 2)
|
||||
|
|
Loading…
Reference in New Issue