annotate DEPENDENCIES/generic/include/boost/geometry/util/condition.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // Boost.Geometry
Chris@102 2
Chris@102 3 // Copyright (c) 2015 Oracle and/or its affiliates.
Chris@102 4
Chris@102 5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
Chris@102 6
Chris@102 7 // Use, modification and distribution is subject to the Boost Software License,
Chris@102 8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 10
Chris@102 11 #ifndef BOOST_GEOMETRY_UTIL_CONDITION_HPP
Chris@102 12 #define BOOST_GEOMETRY_UTIL_CONDITION_HPP
Chris@102 13
Chris@102 14
Chris@102 15 #include <boost/config.hpp>
Chris@102 16
Chris@102 17
Chris@102 18 // The macro defined in this file allows to suppress the MSVC
Chris@102 19 // compiler warning C4127: conditional expression is constant
Chris@102 20
Chris@102 21 #ifdef BOOST_MSVC
Chris@102 22
Chris@102 23 // NOTE: The code commented out below contains an alternative implementation
Chris@102 24 // of a macro using a free function. It was left here in case if in the future
Chris@102 25 // version of MSVC for the code currently used in the macro implementation
Chris@102 26 // the warning was generated.
Chris@102 27
Chris@102 28 //#ifndef DOXYGEN_NO_DETAIL
Chris@102 29 //namespace boost { namespace geometry { namespace detail {
Chris@102 30 //BOOST_FORCEINLINE bool condition(bool const b) { return b; }
Chris@102 31 //}}} // boost::geometry::detail
Chris@102 32 //#endif // DOXYGEN_NO_DETAIL
Chris@102 33 //#define BOOST_GEOMETRY_CONDITION(CONDITION) boost::geometry::detail::condition(CONDITION)
Chris@102 34
Chris@102 35 #define BOOST_GEOMETRY_CONDITION(CONDITION) ((void)0, (CONDITION))
Chris@102 36
Chris@102 37 #else
Chris@102 38
Chris@102 39 #define BOOST_GEOMETRY_CONDITION(CONDITION) (CONDITION)
Chris@102 40
Chris@102 41 #endif
Chris@102 42
Chris@102 43
Chris@102 44 #endif // BOOST_GEOMETRY_UTIL_CONDITION_HPP