HLSL: Allow macro expansions to create the 'defined' operator.

This commit is contained in:
John Kessenich
2017-06-08 17:12:56 -06:00
parent 3fcb42cfa6
commit 4d5bcd3162
4 changed files with 80 additions and 1 deletions

17
Test/hlsl.pp.vert Normal file
View 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() {}