forked from boostorg/preprocessor
Changed separation to strict and non-strict implementations and include only the header files needed by either.
This commit is contained in:
@ -15,14 +15,12 @@
|
||||
# ifndef BOOST_PREPROCESSOR_ARITHMETIC_MOD_HPP
|
||||
# define BOOST_PREPROCESSOR_ARITHMETIC_MOD_HPP
|
||||
#
|
||||
# include <boost/preprocessor/arithmetic/detail/div_base.hpp>
|
||||
# include <boost/preprocessor/config/config.hpp>
|
||||
# include <boost/preprocessor/control/iif.hpp>
|
||||
# include <boost/preprocessor/facilities/identity.hpp>
|
||||
# include <boost/preprocessor/tuple/elem.hpp>
|
||||
# include <boost/preprocessor/arithmetic/detail/is_1_number.hpp>
|
||||
#
|
||||
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
|
||||
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
|
||||
#
|
||||
# include <boost/preprocessor/arithmetic/detail/div_base.hpp>
|
||||
# include <boost/preprocessor/tuple/elem.hpp>
|
||||
#
|
||||
# /* BOOST_PP_MOD */
|
||||
#
|
||||
@ -44,6 +42,12 @@
|
||||
#
|
||||
# else
|
||||
#
|
||||
# include <boost/preprocessor/arithmetic/detail/div_base.hpp>
|
||||
# include <boost/preprocessor/control/iif.hpp>
|
||||
# include <boost/preprocessor/facilities/identity.hpp>
|
||||
# include <boost/preprocessor/tuple/elem.hpp>
|
||||
# include <boost/preprocessor/arithmetic/detail/is_1_number.hpp>
|
||||
#
|
||||
# /* BOOST_PP_MOD */
|
||||
#
|
||||
# define BOOST_PP_MOD(x, y) BOOST_PP_IIF(BOOST_PP_DETAIL_IS_1_NUMBER(y),BOOST_PP_IDENTITY_N(0,2),BOOST_PP_MOD_DO)(x,y)
|
||||
|
Reference in New Issue
Block a user