|
#define | TU_TOKEN(x) x |
|
#define | TU_STRING(x) #x |
| stringify without expand
|
|
#define | TU_XSTRING(x) TU_STRING(x) |
| expand then stringify
|
|
#define | TU_STRCAT(a, b) a##b |
| concat without expand
|
|
#define | TU_STRCAT3(a, b, c) a##b##c |
| concat without expand
|
|
#define | TU_XSTRCAT(a, b) TU_STRCAT(a, b) |
| expand then concat
|
|
#define | TU_XSTRCAT3(a, b, c) TU_STRCAT3(a, b, c) |
| expand then concat 3 tokens
|
|
#define | TU_INCLUDE_PATH(_dir, _file) TU_XSTRING( TU_TOKEN(_dir)TU_TOKEN(_file) ) |
|
#define | _TU_COUNTER_ __LINE__ |
|
#define | TU_VERIFY_STATIC(const_expr, _mess) enum { TU_XSTRCAT(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) } |
|
#define | tu_static static |
|
#define | TU_RESERVED TU_XSTRCAT(reserved, _TU_COUNTER_) |
|
#define | TU_LITTLE_ENDIAN (0x12u) |
|
#define | TU_BIG_ENDIAN (0x21u) |
|
#define | TU_ARGS_NUM(...) _TU_NARG(_0, ##__VA_ARGS__, _RSEQ_N()) |
|
#define | _TU_NARG(...) _GET_NTH_ARG(__VA_ARGS__) |
|
#define | _GET_NTH_ARG(_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, ...) N |
|
#define | _RSEQ_N() |
|
#define | TU_ARGS_APPLY(_X, _s, ...) TU_XSTRCAT(_TU_ARGS_APPLY_, TU_ARGS_NUM(__VA_ARGS__))(_X, _s, __VA_ARGS__) |
|
#define | _TU_ARGS_APPLY_1(_X, _s, _a1) _X(_a1) |
|
#define | _TU_ARGS_APPLY_2(_X, _s, _a1, _a2) _X(_a1) _s _X(_a2) |
|
#define | _TU_ARGS_APPLY_3(_X, _s, _a1, _a2, _a3) _X(_a1) _s _TU_ARGS_APPLY_2(_X, _s, _a2, _a3) |
|
#define | _TU_ARGS_APPLY_4(_X, _s, _a1, _a2, _a3, _a4) _X(_a1) _s _TU_ARGS_APPLY_3(_X, _s, _a2, _a3, _a4) |
|
#define | _TU_ARGS_APPLY_5(_X, _s, _a1, _a2, _a3, _a4, _a5) _X(_a1) _s _TU_ARGS_APPLY_4(_X, _s, _a2, _a3, _a4, _a5) |
|
#define | _TU_ARGS_APPLY_6(_X, _s, _a1, _a2, _a3, _a4, _a5, _a6) _X(_a1) _s _TU_ARGS_APPLY_5(_X, _s, _a2, _a3, _a4, _a5, _a6) |
|
#define | _TU_ARGS_APPLY_7(_X, _s, _a1, _a2, _a3, _a4, _a5, _a6, _a7) _X(_a1) _s _TU_ARGS_APPLY_6(_X, _s, _a2, _a3, _a4, _a5, _a6, _a7) |
|
#define | _TU_ARGS_APPLY_8(_X, _s, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) _X(_a1) _s _TU_ARGS_APPLY_7(_X, _s, _a2, _a3, _a4, _a5, _a6, _a7, _a8) |
|
#define | tu_htons(u16) (TU_BSWAP16(u16)) |
|
#define | tu_ntohs(u16) (TU_BSWAP16(u16)) |
|
#define | tu_htonl(u32) (TU_BSWAP32(u32)) |
|
#define | tu_ntohl(u32) (TU_BSWAP32(u32)) |
|
#define | tu_htole16(u16) (u16) |
|
#define | tu_le16toh(u16) (u16) |
|
#define | tu_htole32(u32) (u32) |
|
#define | tu_le32toh(u32) (u32) |
|