FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | clib_error_function ((char *) __FUNCTION__) |
#define | CLIB_ASSERT_ENABLE (CLIB_DEBUG > 0) |
#define | ASSERT(truth) |
#define | STATIC_ASSERT(truth, ...) _Static_assert(truth, __VA_ARGS__) |
#define | STATIC_ASSERT_SIZEOF(d, s) STATIC_ASSERT (sizeof (d) == s, "Size of " #d " must be " # s " bytes") |
#define | STATIC_ASSERT_OFFSET_OF(s, e, o) STATIC_ASSERT (STRUCT_OFFSET_OF(s,e) == o, "Offset of " #s "." #e " must be " # o) |
#define | ASSERT_AND_PANIC(truth) |
Enumerations | |
enum | { CLIB_ERROR_FATAL = 1 << 0, CLIB_ERROR_ABORT = 1 << 1, CLIB_ERROR_WARNING = 1 << 2, CLIB_ERROR_ERRNO_VALID = 1 << 16, CLIB_ERROR_NO_RATE_LIMIT = 1 << 17 } |
#define ASSERT | ( | truth | ) |
Definition at line 69 of file error_bootstrap.h.
#define ASSERT_AND_PANIC | ( | truth | ) |
Definition at line 95 of file error_bootstrap.h.
#define CLIB_ASSERT_ENABLE (CLIB_DEBUG > 0) |
Definition at line 59 of file error_bootstrap.h.
#define clib_error_function ((char *) __FUNCTION__) |
Definition at line 56 of file error_bootstrap.h.
#define STATIC_ASSERT | ( | truth, | |
... | |||
) | _Static_assert(truth, __VA_ARGS__) |
Definition at line 85 of file error_bootstrap.h.
#define STATIC_ASSERT_OFFSET_OF | ( | s, | |
e, | |||
o | |||
) | STATIC_ASSERT (STRUCT_OFFSET_OF(s,e) == o, "Offset of " #s "." #e " must be " # o) |
Definition at line 91 of file error_bootstrap.h.
#define STATIC_ASSERT_SIZEOF | ( | d, | |
s | |||
) | STATIC_ASSERT (sizeof (d) == s, "Size of " #d " must be " # s " bytes") |
Definition at line 88 of file error_bootstrap.h.
anonymous enum |
Enumerator | |
---|---|
CLIB_ERROR_FATAL | |
CLIB_ERROR_ABORT | |
CLIB_ERROR_WARNING | |
CLIB_ERROR_ERRNO_VALID | |
CLIB_ERROR_NO_RATE_LIMIT |
Definition at line 46 of file error_bootstrap.h.