#include <librepr/feature.h>
#include "platform.h"
#include "default.h"
#include "format.h"
#include <assert.h>
Go to the source code of this file.
◆ LIBREPR_ASSERT
#define LIBREPR_ASSERT |
( |
|
cond, |
|
|
|
... |
|
) |
| do { if(!(cond)) [[unlikely]] { LIBREPR_EXASSERT(__VA_ARGS__); } } while(0) |
Checked assertion, for constraint enforcement.
◆ LIBREPR_DEBUG
◆ LIBREPR_EXASSERT
Explicit assertion, no condition checks. For fatal errors.
◆ LIBREPR_SOFT_ASSERT
#define LIBREPR_SOFT_ASSERT |
( |
|
... | ) |
(void)(0) |
Only checks assertion when REPR_HARD_CHECKS
is ON
.
◆ LIBREPR_UND_ASSERT_
#define LIBREPR_UND_ASSERT_ |
( |
|
... | ) |
__assert_fail((__VA_ARGS__), __FILE__, __LINE__, __PRETTY_FUNCTION__) |
◆ LIBREPR_UNREACHABLE
#define LIBREPR_UNREACHABLE |
( |
| ) |
__builtin_unreachable() |
◆ REPR_FORMAT
#define REPR_FORMAT |
( |
|
... | ) |
::REPR_FORMAT_RNS::format(__VA_ARGS__) |