yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

jsmall-nvidiaIgnore expression if hit #if when skipping. (#844)8e7e74f31

master
316 B17 linesraw
1//TEST:SIMPLE:
2// Check #if expression is ignored if outer #if/#ifndef means it is skipped
3
4#if 0
5BadThing thatWontCompile;
6#if a + b == 27
7BadThing thatWontCompile;
8#endif
9BadThing thatWontCompile;
10#endif
11
12#ifdef SOMETHING_SILLY
13BadThing thatWontCompile;
14#if SOMETHING_SILLY
15BadThing thatWontCompile;
16#endif
17#endif