yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
af63ee4e4
master
1// if-macro.slang 2 3//TEST:SIMPLE: 4 5// Test that a `#if` test can invoke a function-like macro. 6// 7// Note: this test is a reproducer for a bug reported by a user. 8 9#define is_valid_TEST 1 10#define isValid(name) (is_valid_##name != 0) 11int test() { 12#if isValid(TEST) 13 return 1; 14#else 15 return NO_SUCH_SYMBOL; 16#endif 17}