Fix issue #391: input stack underflow on too few macro arguments.

This commit is contained in:
John Kessenich 2016-07-19 14:32:52 -06:00
parent f8332509b9
commit 31a51becd2
6 changed files with 22 additions and 4 deletions

View file

@ -179,7 +179,7 @@ int TPpContext::ReadToken(TokenStream *pTok, TPpToken *ppToken)
if (ltoken > 127)
ltoken += 128;
switch (ltoken) {
case '#':
case '#':
if (lReadByte(pTok) == '#') {
parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)");
parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, 0, "token pasting (##)");