data-structures-c
Loading...
Searching...
No Matches
paste.h File Reference

C preprocessor macros for pasting tokens together. More...

Go to the source code of this file.

Macros

#define PASTE(a, b)
 Paste two tokens together.
 
#define XPASTE(a, b)
 First expand tokens, then paste them together.
 
#define JOIN(a, b)
 First expand tokens, then paste them together with a _ in between.
 

Detailed Description

C preprocessor macros for pasting tokens together.

Macro Definition Documentation

◆ JOIN

#define JOIN ( a,
b )
Value:
XPASTE(a, XPASTE(_, b))
#define XPASTE(a, b)
First expand tokens, then paste them together.
Definition paste.h:29

First expand tokens, then paste them together with a _ in between.

◆ PASTE

#define PASTE ( a,
b )
Value:
a##b

Paste two tokens together.

◆ XPASTE

#define XPASTE ( a,
b )
Value:
PASTE(a, b)
#define PASTE(a, b)
Paste two tokens together.
Definition paste.h:23

First expand tokens, then paste them together.