# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt or copy at # * http://www.boost.org/LICENSE_1_0.txt) # * * # ************************************************************************** */ # # /* Revised by Edward Diener (2020) */ # # /* See http://www.boost.org for most recent version. */ # # ifndef ACTIV_BOOST_PREPROCESSOR_CONTROL_DEDUCE_D_HPP # define ACTIV_BOOST_PREPROCESSOR_CONTROL_DEDUCE_D_HPP # # include # # if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_STRICT() # # include # include # # /* ACTIV_BOOST_PP_DEDUCE_D */ # # define ACTIV_BOOST_PP_DEDUCE_D() ACTIV_BOOST_PP_AUTO_REC(ACTIV_BOOST_PP_WHILE_P, 256) # # else # # include # include # include # include # # /* ACTIV_BOOST_PP_DEDUCE_D */ # # if ACTIV_BOOST_PP_LIMIT_WHILE == 256 # define ACTIV_BOOST_PP_DEDUCE_D() ACTIV_BOOST_PP_DEC(ACTIV_BOOST_PP_AUTO_REC(ACTIV_BOOST_PP_WHILE_P, 256)) # elif ACTIV_BOOST_PP_LIMIT_WHILE == 512 # define ACTIV_BOOST_PP_DEDUCE_D() ACTIV_BOOST_PP_DEC(ACTIV_BOOST_PP_AUTO_REC(ACTIV_BOOST_PP_WHILE_P, 512)) # elif ACTIV_BOOST_PP_LIMIT_WHILE == 1024 # define ACTIV_BOOST_PP_DEDUCE_D() ACTIV_BOOST_PP_DEC(ACTIV_BOOST_PP_AUTO_REC(ACTIV_BOOST_PP_WHILE_P, 1024)) # else # error Incorrect value for the ACTIV_BOOST_PP_LIMIT_WHILE limit # endif # # endif # # endif