dpkg 1.21.11
|
Macros | |
#define | DPKG_GCC_VERSION 0 |
#define | DPKG_ATTR_UNUSED |
#define | DPKG_ATTR_CONST |
#define | DPKG_ATTR_PURE |
#define | DPKG_ATTR_MALLOC |
#define | DPKG_ATTR_NORET |
#define | DPKG_ATTR_PRINTF(n) |
#define | DPKG_ATTR_VPRINTF(n) |
#define | DPKG_ATTR_NONNULL(...) |
#define | DPKG_ATTR_REQRET |
#define | DPKG_ATTR_SENTINEL |
#define | DPKG_BEGIN_DECLS |
#define | DPKG_END_DECLS |
#define | DPKG_NULL NULL |
A null pointer constant that works on C or C++. More... | |
#define | DPKG_STATIC_CAST(type, expr) (type)(expr) |
Cast an expression to a given type that works on C or C++. More... | |
#define | DPKG_BIT(n) (1UL << (n)) |
Return the integer value of bit n. More... | |
#define | array_count(a) (sizeof(a) / sizeof((a)[0])) |
Returns the amount of items in an array. More... | |
#define | min(a, b) ((a) < (b) ? (a) : (b)) |
#define | max(a, b) ((a) > (b) ? (a) : (b)) |
#define | clamp(v, l, h) ((v) > (h) ? (h) : ((v) < (l) ? (l) : (v))) |
Returns a normalized value within the low and high limits. More... | |
#define array_count | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
Returns the amount of items in an array.
#define clamp | ( | v, | |
l, | |||
h | |||
) | ((v) > (h) ? (h) : ((v) < (l) ? (l) : (v))) |
Returns a normalized value within the low and high limits.
v | The value to clamp. |
l | The low limit. |
h | The high limit. |
#define DPKG_ATTR_CONST |
#define DPKG_ATTR_MALLOC |
#define DPKG_ATTR_NONNULL | ( | ... | ) |
#define DPKG_ATTR_NORET |
#define DPKG_ATTR_PRINTF | ( | n | ) |
#define DPKG_ATTR_PURE |
#define DPKG_ATTR_REQRET |
#define DPKG_ATTR_SENTINEL |
#define DPKG_ATTR_UNUSED |
#define DPKG_ATTR_VPRINTF | ( | n | ) |
#define DPKG_BEGIN_DECLS |
#define DPKG_BIT | ( | n | ) | (1UL << (n)) |
Return the integer value of bit n.
#define DPKG_END_DECLS |
#define DPKG_GCC_VERSION 0 |
#define DPKG_NULL NULL |
A null pointer constant that works on C or C++.
To be used only on header files, where having to conditionalize the code to use either NULL or nullptr would be too cumbersome. Non-header files should use the appropriate constant directly.
#define DPKG_STATIC_CAST | ( | type, | |
expr | |||
) | (type)(expr) |
Cast an expression to a given type that works on C or C++.
To be used only on header files, where having to conditionalize the code to use either NULL or nullptr would be too cumbersome. Non-header files should use the appropriate constant directly.
#define max | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
#define min | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |