projects
/
xonotic
/
gmqcc.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Match C's preprocessor semantics for token pasting with '##'.
[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))