Go to the source code of this file.
◆ HPP_ASSERT
#define HPP_ASSERT |
( |
|
CONDITION | ) |
|
Value: do { \
bool _x = static_cast<bool>(CONDITION); \
if (!_x) \
#CONDITION " evaluates to false"); \
} while (0)
Class to ease exception creation.
Definition exception-factory.hh:73
Define HPP_ASSERT.
Throw an ::hpp::AssertionError if macro argument evaluates to false.
◆ HPP_ENABLE_ASSERTIONS
#define HPP_ENABLE_ASSERTIONS |
◆ HPP_PRECONDITION
#define HPP_PRECONDITION |
( |
|
CONDITION | ) |
HPP_ASSERT(CONDITION) |
Define macro for precondition checking.