HLSL: Allow macro expansions to create the 'defined' operator.
This commit is contained in:
17
Test/hlsl.pp.vert
Normal file
17
Test/hlsl.pp.vert
Normal file
@@ -0,0 +1,17 @@
|
||||
#define A defined(B)
|
||||
|
||||
#if A
|
||||
int badGlobal1;
|
||||
#else
|
||||
int goodGlobal1;
|
||||
#endif
|
||||
|
||||
#define B
|
||||
|
||||
#if A
|
||||
int goodGlobal2;
|
||||
#else
|
||||
int badGlobal2;
|
||||
#endif
|
||||
|
||||
void main() {}
|
||||
Reference in New Issue
Block a user