P99
|
◆ P99_SEP
Apply the macro MACRO to the rest of the argument list. The macro is called with each of the other arguments and the results are separated by semicolon. Suppose you want to create a #define FIELD_DECL(X) P99_PASTE2(type_, X) P99_PASTE2(X, _flag)
struct bits {
P99_SEP(FIELD_DECL, chaos, sat, grey);
};
This will result in the following expansion struct bits {
type_chaos chaos_flag;
type_sat sat_flag;
type_grey grey_flag;
};
|