1
//-----------------------------------------------------------------------------
2
// boost mpl/aux_/preprocessor/sub.hpp header file
3
// See http://www.boost.org for updates, documentation, and revision history.
4
//-----------------------------------------------------------------------------
9
// Permission to use, copy, modify, distribute and sell this software
10
// and its documentation for any purpose is hereby granted without fee,
11
// provided that the above copyright notice appears in all copies and
12
// that both the copyright notice and this permission notice appear in
13
// supporting documentation. No representations are made about the
14
// suitability of this software for any purpose. It is provided "as is"
15
// without express or implied warranty.
17
#ifndef BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
18
#define BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
20
#include "boost/mpl/aux_/preprocessor/tuple.hpp"
21
#include "boost/mpl/aux_/config/preprocessor.hpp"
23
#if defined(BOOST_MPL_BROKEN_PP_MACRO_EXPANSION)
24
# include "boost/preprocessor/cat.hpp"
26
# define BOOST_MPL_PP_SUB(i,j) \
27
BOOST_MPL_PP_SUB_DELAY(i,j) \
30
# define BOOST_MPL_PP_SUB_DELAY(i,j) \
31
BOOST_PP_CAT(BOOST_MPL_PP_TUPLE_11_ELEM_##i,BOOST_MPL_PP_SUB_##j) \
34
# define BOOST_MPL_PP_SUB(i,j) \
35
BOOST_MPL_PP_SUB_DELAY(i,j) \
38
# define BOOST_MPL_PP_SUB_DELAY(i,j) \
39
BOOST_MPL_PP_TUPLE_11_ELEM_##i BOOST_MPL_PP_SUB_##j \
41
#endif // BOOST_MPL_BROKEN_PP_MACRO_EXPANSION
43
#define BOOST_MPL_PP_SUB_0 (0,1,2,3,4,5,6,7,8,9,10)
44
#define BOOST_MPL_PP_SUB_1 (0,0,1,2,3,4,5,6,7,8,9)
45
#define BOOST_MPL_PP_SUB_2 (0,0,0,1,2,3,4,5,6,7,8)
46
#define BOOST_MPL_PP_SUB_3 (0,0,0,0,1,2,3,4,5,6,7)
47
#define BOOST_MPL_PP_SUB_4 (0,0,0,0,0,1,2,3,4,5,6)
48
#define BOOST_MPL_PP_SUB_5 (0,0,0,0,0,0,1,2,3,4,5)
49
#define BOOST_MPL_PP_SUB_6 (0,0,0,0,0,0,0,1,2,3,4)
50
#define BOOST_MPL_PP_SUB_7 (0,0,0,0,0,0,0,0 1,2,3)
51
#define BOOST_MPL_PP_SUB_8 (0,0,0,0,0,0,0,0,0,1,2)
52
#define BOOST_MPL_PP_SUB_9 (0,0,0,0,0,0,0,0,0,0,1)
53
#define BOOST_MPL_PP_SUB_10 (0,0,0,0,0,0,0,0,0,0,0)
55
#endif // BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED