11 #ifndef HPP_UTIL_ASSERTION_HH 12 # define HPP_UTIL_ASSERTION_HH 13 # include <boost/scope_exit.hpp> 15 # include <hpp/util/config.hh> 20 # if (defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 21 # define HPP_ENABLE_ASSERTIONS 22 # endif // (!defined HPP_DEBUG) && (!defined HPP_ENABLE_ASSERTIONS) 33 # ifdef HPP_ENABLE_ASSERTIONS 34 # define HPP_ASSERT(CONDITION) \ 36 bool _x = static_cast<bool>(CONDITION); \ 39 (::hpp::AssertionError, \ 40 #CONDITION " evaluates to false"); \ 43 # define HPP_ASSERT(CONDITION) 44 # endif // HPP_ENABLE_ASSERTIONS 47 # define HPP_PRECONDITION(CONDITION) HPP_ASSERT (CONDITION) Definition: assertion.hh:24
HPP_MAKE_EXCEPTION(HPP_UTIL_DLLAPI, AssertionError)