config.hpp 893 B

1234567891011121314151617181920212223242526
  1. #ifndef BOOST_CONTRACT_DETAIL_CONFIG_HPP_
  2. #define BOOST_CONTRACT_DETAIL_CONFIG_HPP_
  3. // Copyright (C) 2008-2018 Lorenzo Caminiti
  4. // Distributed under the Boost Software License, Version 1.0 (see accompanying
  5. // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
  6. // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
  7. #include <boost/preprocessor/cat.hpp>
  8. // Turn off BOOST_ASSERT(...) in lib's implementation (always on by default).
  9. // BOOST_CONTRACT_DETAIL_NDEBUG
  10. #ifndef BOOST_CONTRACT_DETAIL_NAME_INFIX
  11. // Do not use underscore "_" to avoid generating reserved names with "__".
  12. #define BOOST_CONTRACT_DETAIL_NAME_INFIX X
  13. #endif
  14. #ifndef BOOST_CONTRACT_DETAIL_NAME_PREFIX
  15. #define BOOST_CONTRACT_DETAIL_NAME_PREFIX \
  16. BOOST_PP_CAT(boost_contract_detail, BOOST_CONTRACT_DETAIL_NAME_INFIX)
  17. #endif
  18. #endif // #include guard