yum-mirror/slang

Making it easier to work with shaders

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

T. FoleyOverhaul the preprocessor (#1849)0389546b0

master
361 B13 linesraw
1//DIAGNOSTIC_TEST:SIMPLE:-E
2
3// This os a regression test for a bug in Slang preprocessor macro expansion.
4
5#define CONCAT2(x, y) x ## y
6#define CONCAT(x, y) CONCAT2(x, y)
7
8#define SOMETHING someThing
9
10// Should be someThingElse
11CONCAT(SOMETHING, Else)
12// Should be SOMETHINGAnother, but old Slang expands to produce someThingAnother
13CONCAT2(SOMETHING, Another)