11 #ifndef HPP_UTIL_ASSERTION_HH 12 # define HPP_UTIL_ASSERTION_HH 18 # if (defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 19 # define HPP_ENABLE_ASSERTIONS 20 # endif // (!defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 31 # ifdef HPP_ENABLE_ASSERTIONS 32 # define HPP_ASSERT(CONDITION) \ 34 bool _x = static_cast<bool>(CONDITION); \ 37 (::hpp::AssertionError, \ 38 #CONDITION " evaluates to false"); \ 41 # define HPP_ASSERT(CONDITION) 42 # endif // HPP_ENABLE_ASSERTIONS 45 # define HPP_PRECONDITION(CONDITION) HPP_ASSERT (CONDITION) Definition: assertion.hh:22
HPP_MAKE_EXCEPTION(HPP_UTIL_DLLAPI, AssertionError)
#define HPP_UTIL_DLLAPI
Definition: config.hh:64