~ubuntu-branches/ubuntu/breezy/aqsis/breezy

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/preprocessor/sub.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Will Newton
  • Date: 2004-12-07 20:06:49 UTC
  • Revision ID: james.westby@ubuntu.com-20041207200649-fccswkrvp4oc8lmn
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
// boost mpl/aux_/preprocessor/sub.hpp header file
 
3
// See http://www.boost.org for updates, documentation, and revision history.
 
4
//-----------------------------------------------------------------------------
 
5
//
 
6
// Copyright (c) 2002
 
7
// Aleksey Gurtovoy
 
8
//
 
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.
 
16
 
 
17
#ifndef BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
 
18
#define BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED
 
19
 
 
20
#include "boost/mpl/aux_/preprocessor/tuple.hpp"
 
21
#include "boost/mpl/aux_/config/preprocessor.hpp"
 
22
 
 
23
#if defined(BOOST_MPL_BROKEN_PP_MACRO_EXPANSION)
 
24
#   include "boost/preprocessor/cat.hpp"
 
25
 
 
26
#   define BOOST_MPL_PP_SUB(i,j) \
 
27
    BOOST_MPL_PP_SUB_DELAY(i,j) \
 
28
    /**/
 
29
 
 
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) \
 
32
    /**/
 
33
#else
 
34
#   define BOOST_MPL_PP_SUB(i,j) \
 
35
    BOOST_MPL_PP_SUB_DELAY(i,j) \
 
36
    /**/
 
37
 
 
38
#   define BOOST_MPL_PP_SUB_DELAY(i,j) \
 
39
    BOOST_MPL_PP_TUPLE_11_ELEM_##i BOOST_MPL_PP_SUB_##j \
 
40
    /**/
 
41
#endif // BOOST_MPL_BROKEN_PP_MACRO_EXPANSION
 
42
 
 
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)
 
54
 
 
55
#endif // BOOST_MPL_AUX_PREPROCESSOR_SUB_HPP_INCLUDED