https://github.com/shader-slang/slang
Raw File
Tip revision: dd435512219f435ea13498e6124930fd4cf823a9 authored by Tim Foley on 18 November 2019, 18:36:38 UTC
Further refactoring of semantic checking (#1102)
Tip revision: dd43551
ifdef.slang
//TEST:SIMPLE:
// #ifdef support

#define A

#ifdef A
int foo() { return 0; }
#else
BadThing thatWontCompile;
#endif

#ifdef BadThing
AnotherError onThisLine;
#else
int bar() { return foo(); }
#endif
back to top