Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:37

0001 
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2002-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/config/preprocessor.hpp>
0018 
0019 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
0020 
0021 #   include <boost/mpl/aux_/preprocessor/tuple.hpp>
0022 
0023 #if defined(BOOST_MPL_CFG_BROKEN_PP_MACRO_EXPANSION)
0024 #   include <boost/preprocessor/cat.hpp>
0025 
0026 #   define BOOST_MPL_PP_SUB(i,j) \
0027     BOOST_MPL_PP_SUB_DELAY(i,j) \
0028     /**/
0029 
0030 #   define BOOST_MPL_PP_SUB_DELAY(i,j) \
0031     BOOST_PP_CAT(BOOST_MPL_PP_TUPLE_11_ELEM_##i,BOOST_MPL_PP_SUB_##j) \
0032     /**/
0033 #else
0034 #   define BOOST_MPL_PP_SUB(i,j) \
0035     BOOST_MPL_PP_SUB_DELAY(i,j) \
0036     /**/
0037 
0038 #   define BOOST_MPL_PP_SUB_DELAY(i,j) \
0039     BOOST_MPL_PP_TUPLE_11_ELEM_##i BOOST_MPL_PP_SUB_##j \
0040     /**/
0041 #endif
0042 
0043 #   define BOOST_MPL_PP_SUB_0 (0,1,2,3,4,5,6,7,8,9,10)
0044 #   define BOOST_MPL_PP_SUB_1 (0,0,1,2,3,4,5,6,7,8,9)
0045 #   define BOOST_MPL_PP_SUB_2 (0,0,0,1,2,3,4,5,6,7,8)
0046 #   define BOOST_MPL_PP_SUB_3 (0,0,0,0,1,2,3,4,5,6,7)
0047 #   define BOOST_MPL_PP_SUB_4 (0,0,0,0,0,1,2,3,4,5,6)
0048 #   define BOOST_MPL_PP_SUB_5 (0,0,0,0,0,0,1,2,3,4,5)
0049 #   define BOOST_MPL_PP_SUB_6 (0,0,0,0,0,0,0,1,2,3,4)
0050 #   define BOOST_MPL_PP_SUB_7 (0,0,0,0,0,0,0,0,1,2,3)
0051 #   define BOOST_MPL_PP_SUB_8 (0,0,0,0,0,0,0,0,0,1,2)
0052 #   define BOOST_MPL_PP_SUB_9 (0,0,0,0,0,0,0,0,0,0,1)
0053 #   define BOOST_MPL_PP_SUB_10 (0,0,0,0,0,0,0,0,0,0,0)
0054 
0055 #else
0056 
0057 #   include <boost/preprocessor/arithmetic/sub.hpp>
0058 
0059 #   define BOOST_MPL_PP_SUB(i,j) \
0060     BOOST_PP_SUB(i,j) \
0061     /**/
0062     
0063 #endif
0064 
0065 #endif // BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED