Fix #1563: Corrupt token when an object macro miscalls a function macro
This commit is contained in:
parent
4ee2f75294
commit
4207c97b93
5 changed files with 27 additions and 8 deletions
|
|
@ -37,7 +37,7 @@ struct S {
|
|||
#define xyz xxyz
|
||||
#define yzy() yyz
|
||||
|
||||
#define LIGHTING_COMMON_BRDF() \
|
||||
#define FUN_MAC() \
|
||||
vec3 a = vec3(0); \
|
||||
vec3 b = a.zxyz; \
|
||||
vec3 b = a.xyz; \
|
||||
|
|
@ -55,5 +55,11 @@ void foo()
|
|||
s.member2.yzy();
|
||||
s.member2.xyz();
|
||||
s.member2.yzy;
|
||||
LIGHTING_COMMON_BRDF()
|
||||
FUN_MAC()
|
||||
yzy
|
||||
|
||||
();
|
||||
yzy
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue