lib_y.cpp 688 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2008-2018 Lorenzo Caminiti
  2. // Distributed under the Boost Software License, Version 1.0 (see accompanying
  3. // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
  4. // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
  5. // Force .cpp never check post/except.
  6. #ifndef BOOST_CONTRACT_NO_POSTCONDITIONS
  7. #error "build must define NO_POSTCONDITIONS"
  8. #endif
  9. #ifndef BOOST_CONTRACT_NO_EXCEPTS
  10. #error "build must define NO_EXCEPTS"
  11. #endif
  12. #define BOOST_CONTRACT_TEST_LIB_Y_SOURCE
  13. #include "lib_y.hpp"
  14. namespace lib_y_ {
  15. void y_body() {
  16. using boost::contract::test::detail::out;
  17. out("y::body\n");
  18. }
  19. }