Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:51:41

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2015 Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0006 
0007 // Use, modification and distribution is subject to the Boost Software License,
0008 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_GEOMETRY_UTIL_CONDITION_HPP
0012 #define BOOST_GEOMETRY_UTIL_CONDITION_HPP
0013 
0014 
0015 #include <boost/config.hpp>
0016 
0017 
0018 // The macro defined in this file allows to suppress the MSVC
0019 // compiler warning C4127: conditional expression is constant
0020 
0021 #ifdef BOOST_MSVC
0022 
0023 // NOTE: The code commented out below contains an alternative implementation
0024 // of a macro using a free function. It was left here in case if in the future
0025 // version of MSVC for the code currently used in the macro implementation
0026 // the warning was generated.
0027 
0028 //#ifndef DOXYGEN_NO_DETAIL
0029 //namespace boost { namespace geometry { namespace detail {
0030 //BOOST_FORCEINLINE bool condition(bool const b) { return b; }
0031 //}}} // boost::geometry::detail
0032 //#endif // DOXYGEN_NO_DETAIL
0033 //#define BOOST_GEOMETRY_CONDITION(CONDITION) boost::geometry::detail::condition(CONDITION)
0034 
0035 #define BOOST_GEOMETRY_CONDITION(CONDITION) ((void)0, (CONDITION))
0036 
0037 #else
0038 
0039 #define BOOST_GEOMETRY_CONDITION(CONDITION) (CONDITION)
0040 
0041 #endif
0042 
0043 
0044 #endif // BOOST_GEOMETRY_UTIL_CONDITION_HPP