Fix #1079: don't give error when macro() name used without open (.
This commit is contained in:
parent
e8d21388ed
commit
88e22a6090
6 changed files with 83 additions and 8 deletions
12
Test/cppPassMacroName.frag
Normal file
12
Test/cppPassMacroName.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#define f1(i) ((i)*(i))
|
||||
#define I2(f, n) f(n) + f(n+1)
|
||||
#define I3(f, n) I2(f, n) + f(n+2)
|
||||
|
||||
void main()
|
||||
{
|
||||
int f1 = 4;
|
||||
int f2 = f1;
|
||||
int f3 = f1(3);
|
||||
int f4 = I2(f1, 0);
|
||||
int f5 = I3(f1, 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue