ttypt/xy-pp.h(3)libxylem

NAME

ttypt/xy-pp.h - Preprocessor plumbing for the xy macro API.

SYNOPSIS

Macros

#define CAT(a, ...)

Concatenate a with the remaining arguments after expansion.

#define PRIMITIVE_CAT(a, ...)

Concatenate two token lists without further expansion.

#define XY_PC(...)

Count the number of (type, name) argument pairs passed.

#define PP_NARG_(...)

Count arguments via the PP_ARG_N token ladder.

#define PP_ARG_N(_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, ...)

Token ladder mapping the argument count to N.

#define PAIR_RSEQ_N()

Reverse sequence of paired counts consumed by PP_ARG_N.

#define XY_FA(...)

Expand (type, name) pairs into comma-joined type-name declarations.

#define XY_PG(...)

Expand (type, name) pairs into semicolon-terminated declarations.

#define XY_NP(...)

Expand (a, b) pairs to __xy_a->b, comma-joined.

#define XY_DA(...)

Expand pairs to their second element (name only), comma-joined.

#define STR(x)

Stringize a token without macro expansion.

#define XSTR(x)

Stringize a token after macro expansion.

Detailed Description

Preprocessor plumbing for the xy macro API.

Argument counting, concatenation and expansion helpers used by the XY_DEF / XY_DECL / XY_IMPL macro families.

Macro Definition Documentation

#define XY_DA( ...)

Value:

        CAT(XY_DA_, \
        XY_PC(__VA_ARGS__))( __VA_ARGS__)

Expand pairs to their second element (name only), comma-joined.

Attention

Internal plumbing for the XY macro families.

#define XY_FA( ...)

Value:

        CAT(XY_FA_, \
        XY_PC(__VA_ARGS__))( __VA_ARGS__)

Expand (type, name) pairs into comma-joined type-name declarations.

Attention

Internal plumbing for the XY macro families.

#define XY_NP( ...)

Value:

        CAT(XY_NP_, \
        XY_PC(__VA_ARGS__))( __VA_ARGS__)

Expand (a, b) pairs to __xy_a->b, comma-joined.

Attention

Internal plumbing for the XY macro families.

#define XY_PG( ...)

Value:

        CAT(XY_PG_, \
        XY_PC(__VA_ARGS__))( __VA_ARGS__)

Expand (type, name) pairs into semicolon-terminated declarations.

Attention

Internal plumbing for the XY macro families.

Author

Generated automatically by Doxygen for libxylem from the source code.