Fix #1563: Corrupt token when an object macro miscalls a function macro

This commit is contained in:
John Kessenich 2018-11-07 18:25:56 -07:00
parent 4ee2f75294
commit 4207c97b93
5 changed files with 27 additions and 8 deletions

View file

@ -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
}