.TH "ttypt/xy-pp.h" 3 "libxylem" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/xy-pp.h \- Preprocessor plumbing for the xy macro API\&. .SH SYNOPSIS .br .PP .SS "Macros" .in +1c .ti -1c .RI "#define \fBCAT\fP(a, \&.\&.\&.)" .br .RI "Concatenate \fRa\fP with the remaining arguments after expansion\&. " .ti -1c .RI "#define \fBPRIMITIVE_CAT\fP(a, \&.\&.\&.)" .br .RI "Concatenate two token lists without further expansion\&. " .ti -1c .RI "#define \fBXY_PC\fP(\&.\&.\&.)" .br .RI "Count the number of (type, name) argument pairs passed\&. " .ti -1c .RI "#define \fBPP_NARG_\fP(\&.\&.\&.)" .br .RI "Count arguments via the PP_ARG_N token ladder\&. " .ti -1c .RI "#define \fBPP_ARG_N\fP(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, N, \&.\&.\&.)" .br .RI "Token ladder mapping the argument count to N\&. " .ti -1c .RI "#define \fBPAIR_RSEQ_N\fP()" .br .RI "Reverse sequence of paired counts consumed by PP_ARG_N\&. " .ti -1c .RI "#define \fBXY_FA\fP(\&.\&.\&.)" .br .RI "Expand (type, name) pairs into comma-joined type-name declarations\&. " .ti -1c .RI "#define \fBXY_PG\fP(\&.\&.\&.)" .br .RI "Expand (type, name) pairs into semicolon-terminated declarations\&. " .ti -1c .RI "#define \fBXY_NP\fP(\&.\&.\&.)" .br .RI "Expand (a, b) pairs to __xy_a->b, comma-joined\&. " .ti -1c .RI "#define \fBXY_DA\fP(\&.\&.\&.)" .br .RI "Expand pairs to their second element (name only), comma-joined\&. " .ti -1c .RI "#define \fBSTR\fP(x)" .br .RI "Stringize a token without macro expansion\&. " .ti -1c .RI "#define \fBXSTR\fP(x)" .br .RI "Stringize a token after macro expansion\&. " .in -1c .SH "Detailed Description" .PP Preprocessor plumbing for the xy macro API\&. Argument counting, concatenation and expansion helpers used by the XY_DEF / XY_DECL / XY_IMPL macro families\&. .SH "Macro Definition Documentation" .PP .SS "#define XY_DA( \&.\&.\&.)" \fBValue:\fP .nf CAT(XY_DA_, \\ XY_PC(__VA_ARGS__))( __VA_ARGS__) .PP .fi .PP Expand pairs to their second element (name only), comma-joined\&. .PP \fBAttention\fP .RS 4 Internal plumbing for the XY macro families\&. .RE .PP .SS "#define XY_FA( \&.\&.\&.)" \fBValue:\fP .nf CAT(XY_FA_, \\ XY_PC(__VA_ARGS__))( __VA_ARGS__) .PP .fi .PP Expand (type, name) pairs into comma-joined type-name declarations\&. .PP \fBAttention\fP .RS 4 Internal plumbing for the XY macro families\&. .RE .PP .SS "#define XY_NP( \&.\&.\&.)" \fBValue:\fP .nf CAT(XY_NP_, \\ XY_PC(__VA_ARGS__))( __VA_ARGS__) .PP .fi .PP Expand (a, b) pairs to __xy_a->b, comma-joined\&. .PP \fBAttention\fP .RS 4 Internal plumbing for the XY macro families\&. .RE .PP .SS "#define XY_PG( \&.\&.\&.)" \fBValue:\fP .nf CAT(XY_PG_, \\ XY_PC(__VA_ARGS__))( __VA_ARGS__) .PP .fi .PP Expand (type, name) pairs into semicolon-terminated declarations\&. .PP \fBAttention\fP .RS 4 Internal plumbing for the XY macro families\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libxylem from the source code\&.