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_ADD_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_ADD_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_ADD(i,j) \
0027     BOOST_MPL_PP_ADD_DELAY(i,j) \
0028     /**/
0029 
0030 #   define BOOST_MPL_PP_ADD_DELAY(i,j) \
0031     BOOST_PP_CAT(BOOST_MPL_PP_TUPLE_11_ELEM_##i,BOOST_MPL_PP_ADD_##j) \
0032     /**/
0033 #else
0034 #   define BOOST_MPL_PP_ADD(i,j) \
0035     BOOST_MPL_PP_ADD_DELAY(i,j) \
0036     /**/
0037 
0038 #   define BOOST_MPL_PP_ADD_DELAY(i,j) \
0039     BOOST_MPL_PP_TUPLE_11_ELEM_##i BOOST_MPL_PP_ADD_##j \
0040     /**/
0041 #endif
0042 
0043 #   define BOOST_MPL_PP_ADD_0 (0,1,2,3,4,5,6,7,8,9,10)
0044 #   define BOOST_MPL_PP_ADD_1 (1,2,3,4,5,6,7,8,9,10,0)
0045 #   define BOOST_MPL_PP_ADD_2 (2,3,4,5,6,7,8,9,10,0,0)
0046 #   define BOOST_MPL_PP_ADD_3 (3,4,5,6,7,8,9,10,0,0,0)
0047 #   define BOOST_MPL_PP_ADD_4 (4,5,6,7,8,9,10,0,0,0,0)
0048 #   define BOOST_MPL_PP_ADD_5 (5,6,7,8,9,10,0,0,0,0,0)
0049 #   define BOOST_MPL_PP_ADD_6 (6,7,8,9,10,0,0,0,0,0,0)
0050 #   define BOOST_MPL_PP_ADD_7 (7,8,9,10,0,0,0,0,0,0,0)
0051 #   define BOOST_MPL_PP_ADD_8 (8,9,10,0,0,0,0,0,0,0,0)
0052 #   define BOOST_MPL_PP_ADD_9 (9,10,0,0,0,0,0,0,0,0,0)
0053 #   define BOOST_MPL_PP_ADD_10 (10,0,0,0,0,0,0,0,0,0,0)
0054 
0055 #else
0056 
0057 #   include <boost/preprocessor/arithmetic/add.hpp>
0058 
0059 #   define BOOST_MPL_PP_ADD(i,j) \
0060     BOOST_PP_ADD(i,j) \
0061     /**/
0062     
0063 #endif 
0064 
0065 #endif // BOOST_MPL_AUX_PREPROCESSOR_ADD_HPP_INCLUDED