|
| #define | GET(n, t) CONCAT(GET, n) t |
| | Accessor macro for simulated tuples. More...
|
| |
|
#define | GET0(x0, ...) x0 |
| |
|
#define | GET1(x0, x1, ...) x1 |
| |
|
#define | GET2(x0, x1, x2, ...) x2 |
| |
|
#define | GET3(x0, x1, x2, x3, ...) x3 |
| |
|
#define | GET4(x0, x1, x2, x3, x4, ...) x4 |
| |
|
#define | GET5(x0, x1, x2, x3, x4, x5, ...) x5 |
| |
|
#define | GET6(x0, x1, x2, x3, x4, x5, x6, ...) x6 |
| |
|
#define | GET7(x0, x1, x2, x3, x4, x5, x6, x7, ...) x7 |
| |
|
#define | GET8(x0, x1, x2, x3, x4, x5, x6, x7, x8, ...) x8 |
| |
|
#define | GET20(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, ...) x20 |
| |
|
#define | ARG_COUNT(...) GET20(_X, ##__VA_ARGS__, _19, _18, _17, _16, _15, _14, _13, _12, _11, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0) |
| | Return the number of arguments.
|
| |
| #define | DISPATCH(m, ...) CONCAT(m, ARG_COUNT(__VA_ARGS__))(__VA_ARGS__) |
| | macro to allow handling optional macro arguments DISPATCH(MACRO_NAME, ...) calls MACRO_NAME_N(...) where N is the number of arguments other than MACRO_NAME. More...
|
| |
| #define | FORARG_2(name, x0) |
| |
| #define | FORARG_3(name, x0, x1) |
| |
| #define | FORARG_4(name, x0, x1, x2) |
| |
| #define | FORARG_5(name, x0, x1, x2, x3) |
| |
| #define | FORARG_6(name, x0, x1, x2, x3, x4) |
| |
| #define | FORARG_7(name, x0, x1, x2, x3, x4, x5) |
| |
| #define | FORARG_8(name, x0, x1, x2, x3, x4, x5, x6) |
| |
| #define | FORARG_9(name, x0, x1, x2, x3, x4, x5, x6, x7) |
| |
| #define | FORARG_10(name, x0, x1, x2, x3, x4, x5, x6, x7, x8) |
| |
| #define | FORARG(name, ...) DISPATCH(FORARG, name, __VA_ARGS__) |
| | Create a macro that iterates over its arguments. More...
|
| |
|
#define | DUMMY_args (x, x, x, x, x, x, x, x, x) |
| |
|
#define | DROP_pre |
| |
|
#define | DROP_first(s, x) |
| |
|
#define | DROP_middle(x) ,x |
| |
|
#define | DROP_last(x) ,x |
| |
|
#define | DROP_only(s, x) |
| |
|
#define | DROP_post |
| |
|
#define | DROP_args DUMMY_args |
| |
|
#define | DROP(...) FORARG(DROP, __VA_ARGS__) |
| |
Function dispatch for variable arguments.