CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
tokens.h File Reference

Token pasting and stringification macros. More...

Go to the source code of this file.

Macros

#define tokconcat(x, y)   _tokconcat_actual(x, y)
 
#define tokcat2(x, y)   _tokconcat_actual(x, y)
 Concatenate two tokens (alias for tokconcat)
 
#define tokcat3(x1, x2, x3)   tokcat2(tokcat2(x1, x2), x3)
 Concatenate three tokens.
 
#define tokcat4(x1, x2, x3, x4)   tokcat2(tokcat3(x1, x2, x3), x4)
 Concatenate four tokens.
 
#define tokcat5(x1, x2, x3, x4, x5)   tokcat2(tokcat4(x1, x2, x3, x4), x5)
 Concatenate five tokens.
 
#define tokconcatU(x, y)   _tokconcatU_actual(x, y)
 
#define tokcatU2(x, y)   _tokconcatU_actual(x, y)
 Concatenate two tokens with underscore (alias for tokconcatU)
 
#define tokcatU3(x1, x2, x3)   tokcatU2(tokcatU2(x1, x2), x3)
 Concatenate three tokens with underscores.
 
#define tokcatU4(x1, x2, x3, x4)   tokcatU2(tokcatU3(x1, x2, x3), x4)
 Concatenate four tokens with underscores.
 
#define tokcatU5(x1, x2, x3, x4, x5)   tokcatU2(tokcatU4(x1, x2, x3, x4), x5)
 Concatenate five tokens with underscores.
 
#define tokstring(x)   _tokstring_actual(x)
 
#define tokeval(...)   __VA_ARGS__
 

Detailed Description

Token pasting and stringification macros.

Definition in file tokens.h.