P99
Macros
p99_paste.h File Reference

macros that paste tokens in a predictable way More...

#include "p99_generated.h"
+ Include dependency graph for p99_paste.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P99_CAT2(_1, _2)   _1 ## _2
 Paste two token sequences at their junction. More...
 
#define P99_PASTE0()
 
#define P99_PASTE1(_1)   _1
 
#define P99_PASTE2(_1, _2)   P99_CAT2(_1, _2)
 Paste two token sequences at their junction. More...
 
#define P99_PASTE3(_1, _2, _3)   P99_PASTE2(P99_PASTE2(_1, _2), _3)
 
#define P99_PASTE4(_1, _2, _3, _4)   P99_PASTE2(P99_PASTE3(_1, _2, _3), _4)
 
#define P99_PASTE5(_1, _2, _3, _4, _5)   P99_PASTE2(P99_PASTE4(_1, _2, _3, _4), _5)
 
#define P99_PASTE6(_1, _2, _3, _4, _5, _6)   P99_PASTE2(P99_PASTE5(_1, _2, _3, _4, _5), _6)
 
#define P99_PASTID(...)   P99_PASTE2(P99_PASTID, P99_NARG(__VA_ARGS__))(__VA_ARGS__)
 
#define P99_PASTID0()
 
#define P99_PASTID1(ID)   ID
 
#define P99_PASTID2(ID0, ID1)   P99_IF_EMPTY(ID1)(P00_PASTID2(ID0, p007))(P00_PASTID2(ID0, ID1))
 

Detailed Description

macros that paste tokens in a predictable way

See also
P99_PASTE

Definition in file p99_paste.h.