34 #ifndef HPP_UTIL_ASSERTION_HH 35 #define HPP_UTIL_ASSERTION_HH 41 #if (defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 42 #define HPP_ENABLE_ASSERTIONS 43 #endif // (!defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 53 #ifdef HPP_ENABLE_ASSERTIONS 54 #define HPP_ASSERT(CONDITION) \ 56 bool _x = static_cast<bool>(CONDITION); \ 58 HPP_THROW_EXCEPTION(::hpp::AssertionError, \ 59 #CONDITION " evaluates to false"); \ 62 #define HPP_ASSERT(CONDITION) 63 #endif // HPP_ENABLE_ASSERTIONS 66 #define HPP_PRECONDITION(CONDITION) HPP_ASSERT(CONDITION) Definition: assertion.hh:45
HPP_MAKE_EXCEPTION(HPP_UTIL_DLLAPI, AssertionError)
#define HPP_UTIL_DLLAPI
Definition: config.hh:64