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
316 B16 linesraw
1//DIAGNOSTIC_TEST:SIMPLE:-E
2
3#define CONCAT(a, b) a ## b
4
5#define A a
6#define B b
7
8#define A2 A
9#define B2 B
10
11// Gives error (as trys to concat unexpanded input)
12// <source>:11:1: error: pasting formed ')CONCAT', an invalid preprocessing token
13//
14// Old Slang output: aabb ;
15
16CONCAT(CONCAT(A2, A2), CONCAT(B2, B2));