12345678910111213141516171819202122232425262728 |
- #ifndef BOOST_CONTRACT_DETAIL_ASSERT_HPP_
- #define BOOST_CONTRACT_DETAIL_ASSERT_HPP_
- #include <boost/contract/core/exception.hpp>
- #include <boost/contract/detail/noop.hpp>
- #include <boost/preprocessor/stringize.hpp>
- #define BOOST_CONTRACT_DETAIL_ASSERT(cond) \
- \
- ((cond) ? \
- BOOST_CONTRACT_DETAIL_NOOP \
- : \
- throw boost::contract::assertion_failure( \
- __FILE__, __LINE__, BOOST_PP_STRINGIZE(cond)) \
- )
- #endif
|