]> git.xonotic.org Git - voretournament/voretournament.git/blob - misc/source/gmqcc-src/tests/ppcat.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / ppcat.qc
1 #define CAT(X, Y) X##Y
2 CAT(hello, world)
3
4 #define REDIR(X, Y) CAT(X, Y)
5 REDIR(CAT(hello, world), CAT(world, hello))
6
7 #define SCONS(X, ...) REDIR(X, __VA_ARGS__)
8 SCONS(hello, world)
9
10 #define FOO(X) X##X
11 #define BAR(X) FOO(X)##FOO(X)
12
13 REDIR(BAR(hello), BAR(world))