May 2017
Intermediate to advanced
590 pages
17h 18m
English
To create a string from an identifier using the preprocessor's operator#, use the following pattern:
#define MAKE_STR2(x) #x
#define MAKE_STR(x) MAKE_STR2(x)
To concatenate identifiers together using the preprocessor's operator##, use the following pattern:
#define MERGE2(x, y) x##y
#define MERGE(x, y) MERGE2(x, y)
Read now
Unlock full access