HLSL: Allow macro expansions to create the 'defined' operator.
This commit is contained in:
parent
3fcb42cfa6
commit
4d5bcd3162
4 changed files with 80 additions and 1 deletions
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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue