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(!bep)
|
||||||
{
|
{
|
||||||
if(YY_START != INITIAL)
|
if(YY_START != INITIAL)
|
||||||
|
{
|
||||||
ppy_error("Unexpected end of file during preprocessing");
|
ppy_error("Unexpected end of file during preprocessing");
|
||||||
|
BEGIN(INITIAL);
|
||||||
|
}
|
||||||
yyterminate();
|
yyterminate();
|
||||||
}
|
}
|
||||||
else if(bep->should_pop == 2)
|
else if(bep->should_pop == 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user