libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Macros | |
#define | GBL_MIN(a, b) |
#define | GBL_MAX(a, b) |
#define | GBL_CEIL(numerator, denominator) |
#define | GBL_CLAMP(n, min, max) |
#define | GBL_BIT_MASK_2(bits, offset) |
#define | GBL_BIT_MASK_1(bits) |
#define | GBL_BIT_MASK(...) |
#define | GBL_BCD_BYTE_PACK(n) |
#define | GBL_BCD_BYTE_UNPACK(n) |
#define | GBL_CONTAINER_OF(ptr, type, member) |
#define | GBL_COUNT_OF(array) |
#define | GBL_PTR_OFFSET(...) |
#define | GBL_PTR_OFFSET_3(type, ptr, bytes) |
#define | GBL_PTR_OFFSET_2(ptr, bytes) |
#define | GBL_SWITCH_CASE_STRINGIFY(s) |
#define | GBL_LABEL_EMPTY(name) |
#define | GBL_SWAP(x, y) |
#define | GBL_ASSERT(...) |
#define | GBL_META_GENERIC_MACRO_GENERATE(traits, X) |
#define | GBL_META_GENERIC_MACRO_TRAIT_PROPERTY_DEFAULT(defaultFunc, overloads) |
#define | GBL_META_GENERIC_MACRO_NO_DEFAULT |
Miscellaneous macro utilities and meta generators.
Definition in file gimbal_macro_utils.h.
#define GBL_MIN | ( | a, | |
b | |||
) |
Definition at line 22 of file gimbal_macro_utils.h.
#define GBL_MAX | ( | a, | |
b | |||
) |
Definition at line 23 of file gimbal_macro_utils.h.
#define GBL_CEIL | ( | numerator, | |
denominator | |||
) |
Definition at line 24 of file gimbal_macro_utils.h.
#define GBL_CLAMP | ( | n, | |
min, | |||
max | |||
) |
Definition at line 25 of file gimbal_macro_utils.h.
#define GBL_BIT_MASK_2 | ( | bits, | |
offset | |||
) |
Definition at line 27 of file gimbal_macro_utils.h.
#define GBL_BIT_MASK_1 | ( | bits | ) |
Definition at line 28 of file gimbal_macro_utils.h.
#define GBL_BIT_MASK | ( | ... | ) |
Definition at line 29 of file gimbal_macro_utils.h.
#define GBL_BCD_BYTE_PACK | ( | n | ) |
Definition at line 31 of file gimbal_macro_utils.h.
#define GBL_BCD_BYTE_UNPACK | ( | n | ) |
Definition at line 32 of file gimbal_macro_utils.h.
#define GBL_CONTAINER_OF | ( | ptr, | |
type, | |||
member | |||
) |
Definition at line 34 of file gimbal_macro_utils.h.
#define GBL_COUNT_OF | ( | array | ) |
Definition at line 35 of file gimbal_macro_utils.h.
#define GBL_PTR_OFFSET | ( | ... | ) |
Definition at line 37 of file gimbal_macro_utils.h.
#define GBL_PTR_OFFSET_3 | ( | type, | |
ptr, | |||
bytes | |||
) |
Definition at line 38 of file gimbal_macro_utils.h.
#define GBL_PTR_OFFSET_2 | ( | ptr, | |
bytes | |||
) |
Definition at line 39 of file gimbal_macro_utils.h.
#define GBL_SWITCH_CASE_STRINGIFY | ( | s | ) |
Definition at line 41 of file gimbal_macro_utils.h.
#define GBL_LABEL_EMPTY | ( | name | ) |
Definition at line 43 of file gimbal_macro_utils.h.
#define GBL_SWAP | ( | x, | |
y | |||
) |
Definition at line 45 of file gimbal_macro_utils.h.
#define GBL_ASSERT | ( | ... | ) |
Definition at line 54 of file gimbal_macro_utils.h.
#define GBL_META_GENERIC_MACRO_GENERATE | ( | traits, | |
X | |||
) |
Definition at line 60 of file gimbal_macro_utils.h.
#define GBL_META_GENERIC_MACRO_TRAIT_PROPERTY_DEFAULT | ( | defaultFunc, | |
overloads | |||
) |
Definition at line 79 of file gimbal_macro_utils.h.
#define GBL_META_GENERIC_MACRO_NO_DEFAULT |
Definition at line 80 of file gimbal_macro_utils.h.