Miscellaneous libraries.
More...
|
#define | SIZEOF_ARRAY(arr) (sizeof((arr)) / sizeof((arr)[0])) |
|
#define | SIZEOF_FIELD(type, field) (sizeof(((type *)0)->field)) |
|
#define | SWAP_UINT16(x) (uint16_t)(((uint16_t)(x) >> 8) | ((uint16_t)(x) << 8)) |
|
#define | STRINGIFY_(x) #x |
|
#define | STRINGIFY(x) STRINGIFY_(x) |
|
#define | MIN(a, b) |
|
#define | MAX(a, b) |
|
#define | TEST_ASSERT_OK(code) TEST_ASSERT_EQUAL(STATUS_CODE_OK, (code)) |
|
#define | TEST_ASSERT_NOT_OK(code) TEST_ASSERT_NOT_EQUAL(STATUS_CODE_OK, (code)) |
|
#define | TEST_MOCK(func) __attribute__((used)) __wrap_##func |
|
#define | TEST_CASE(...) |
|
#define | TEST_PRE_TASK |
|
#define | TEST_IN_TASK |
|
Miscellaneous libraries.
◆ MAX
Value: ({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a > _b ? _a : _b; \
})
◆ MIN
Value: ({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a < _b ? _a : _b; \
})