PP: Partially address issue #738: handle premature end of argument when token pasting.
This commit is contained in:
parent
45c1b5b980
commit
fb22b69fc6
4 changed files with 10 additions and 2 deletions
|
|
@ -2,5 +2,5 @@
|
|||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1858"
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1861"
|
||||
#define GLSLANG_DATE "28-Feb-2017"
|
||||
|
|
|
|||
|
|
@ -986,6 +986,8 @@ TPpContext::TokenStream* TPpContext::PrescanMacroArg(TokenStream& arg, TPpToken*
|
|||
int token;
|
||||
while ((token = scanToken(ppToken)) != tMarkerInput::marker && token != EndOfInput) {
|
||||
token = tokenPaste(token, *ppToken);
|
||||
if (token == tMarkerInput::marker || token == EndOfInput)
|
||||
break;
|
||||
if (token == PpAtomIdentifier && MacroExpand(ppToken, false, newLineOkay) != 0)
|
||||
continue;
|
||||
expandedArg->putToken(token, ppToken);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue