PP: More clearly distinguish funtion-like and object-like macros
This commit is contained in:
parent
0a339ec20c
commit
4ee2f75294
4 changed files with 17 additions and 15 deletions
4
Test/cppSimple.vert
Normal file → Executable file
4
Test/cppSimple.vert
Normal file → Executable file
|
|
@ -170,7 +170,7 @@ int a = length("aoenatuh"); // ERROR
|
|||
|
||||
// ERROR
|
||||
#define m4(b)
|
||||
#define m4 (b)
|
||||
#define m4
|
||||
|
||||
// ERROR
|
||||
#define m5 (b)
|
||||
|
|
@ -178,7 +178,7 @@ int a = length("aoenatuh"); // ERROR
|
|||
|
||||
// ERROR
|
||||
#define m6(a)
|
||||
#define m6
|
||||
#define m6(a,b)
|
||||
|
||||
// ERROR (whitespace)
|
||||
#define m7 (a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue