Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
util_internal.h File Reference

Misc utilities. More...

Go to the source code of this file.

Macros

#define UTIL_CAT(a, ...)
#define UTIL_PRIMITIVE_CAT(a, ...)
#define UTIL_CHECK_N(x, n, ...)
#define UTIL_CHECK(...)
#define UTIL_NOT(x)
#define UTIL_NOT_0   ~, 1,
#define UTIL_COMPL(b)
#define UTIL_COMPL_0   1
#define UTIL_COMPL_1   0
#define UTIL_BOOL(x)
#define UTIL_EVAL(...)
#define UTIL_EXPAND(...)
#define UTIL_REPEAT(...)
#define NUM_VA_ARGS_LESS_1_IMPL( _ignored, _0, _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, N, ...)

Detailed Description

Misc utilities.

Repetitive or obscure helper macros needed by sys/util.h.

Macro Definition Documentation

◆ NUM_VA_ARGS_LESS_1_IMPL

#define NUM_VA_ARGS_LESS_1_IMPL ( _ignored,
_0,
_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,
N,
... )
Value:
N

◆ UTIL_BOOL

#define UTIL_BOOL ( x)
Value:
#define UTIL_NOT(x)
Definition util_internal.h:149
#define UTIL_COMPL(b)
Definition util_internal.h:151

◆ UTIL_CAT

#define UTIL_CAT ( a,
... )
Value:
UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
#define UTIL_PRIMITIVE_CAT(a,...)
Definition util_internal.h:146

◆ UTIL_CHECK

#define UTIL_CHECK ( ...)
Value:
UTIL_CHECK_N(__VA_ARGS__, 0,)
#define UTIL_CHECK_N(x, n,...)
Definition util_internal.h:147

◆ UTIL_CHECK_N

#define UTIL_CHECK_N ( x,
n,
... )
Value:
n

◆ UTIL_COMPL

#define UTIL_COMPL ( b)
Value:
UTIL_PRIMITIVE_CAT(UTIL_COMPL_, b)

◆ UTIL_COMPL_0

#define UTIL_COMPL_0   1

◆ UTIL_COMPL_1

#define UTIL_COMPL_1   0

◆ UTIL_EVAL

#define UTIL_EVAL ( ...)
Value:
__VA_ARGS__

◆ UTIL_EXPAND

#define UTIL_EXPAND ( ...)
Value:
__VA_ARGS__

◆ UTIL_NOT

#define UTIL_NOT ( x)
Value:
#define UTIL_CHECK(...)
Definition util_internal.h:148

◆ UTIL_NOT_0

#define UTIL_NOT_0   ~, 1,

◆ UTIL_PRIMITIVE_CAT

#define UTIL_PRIMITIVE_CAT ( a,
... )
Value:
a##__VA_ARGS__

◆ UTIL_REPEAT

#define UTIL_REPEAT ( ...)
Value:
UTIL_LISTIFY(__VA_ARGS__)