yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyPreprocessor: fix `undef` and redefinition (#204)06b2192aa

master
171 B10 linesraw
1//TEST:SIMPLE:
2
3// Confirm that we handle redefinition
4// of an existing define (with a diagnostic)
5
6#define FOO 1.0f
7
8float foo() { return FOO + 2.0; }
9
10#define FOO 2.0f