]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/ppcat.qc
now a bare 'return;' is not required anymore if return has been assigned anywhere
[xonotic/gmqcc.git] / 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))