PP: Fix #783: Catch end-of-argument expansion in token pasting.
This commit is contained in:
parent
82460b5e21
commit
97cb85c7d6
4 changed files with 15 additions and 3 deletions
|
|
@ -8,7 +8,8 @@ ERROR: 0:69: '##' : combined token is invalid
|
|||
ERROR: 0:82: 'macro expansion' : Too few args in Macro rec
|
||||
ERROR: 0:82: '##' : unexpected location
|
||||
ERROR: 0:82: '##' : unexpected location
|
||||
ERROR: 8 compilation errors. No code generated.
|
||||
ERROR: 0:86: '##' : unexpected location; end of argument
|
||||
ERROR: 9 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 450
|
||||
|
|
|
|||
|
|
@ -79,4 +79,8 @@ uniform M_OUTER(argPaste);
|
|||
uniform M_OUTER2(argPaste);
|
||||
|
||||
#define rec(x)##
|
||||
rec(rec())
|
||||
rec(rec())
|
||||
|
||||
#define bax(bay)
|
||||
#define baz bax(/##)
|
||||
baz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue