setup.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_SETUP_HPP)
  6. #define BOOST_VMD_DETAIL_SETUP_HPP
  7. #include <boost/preprocessor/config/config.hpp>
  8. #if defined(BOOST_VMD_MSVC)
  9. #undef BOOST_VMD_MSVC
  10. #endif
  11. #if defined(BOOST_VMD_MSVC_V8)
  12. #undef BOOST_VMD_MSVC_V8
  13. #endif
  14. #if BOOST_PP_VARIADICS
  15. #define BOOST_VMD_MSVC BOOST_PP_VARIADICS_MSVC
  16. #if BOOST_VMD_MSVC && defined(_MSC_VER) && _MSC_VER == 1400
  17. #define BOOST_VMD_MSVC_V8 1
  18. #else
  19. #define BOOST_VMD_MSVC_V8 0
  20. #endif /* BOOST_VMD_MSVC && defined(_MSC_VER) && _MSC_VER == 1400 */
  21. #if !defined(BOOST_VMD_ASSERT_DATA)
  22. #if defined(NDEBUG)
  23. #define BOOST_VMD_ASSERT_DATA 0
  24. #else
  25. #define BOOST_VMD_ASSERT_DATA 1
  26. #endif /* NDEBUG */
  27. #endif /* BOOST_VMD_ASSERT_DATA */
  28. #else
  29. #define BOOST_VMD_MSVC 0
  30. #define BOOST_VMD_MSVC_V8 0
  31. #if defined(BOOST_VMD_ASSERT_DATA)
  32. #undef BOOST_VMD_ASSERT_DATA
  33. #endif
  34. #define BOOST_VMD_ASSERT_DATA 0
  35. #endif /* BOOST_PP_VARIADICS */
  36. #endif /* BOOST_VMD_DETAIL_SETUP_HPP */