~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/preprocessor/repetition/enum_shifted_params.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# /* Copyright (C) 2001
 
2
#  * Housemarque Oy
 
3
#  * http://www.housemarque.com
 
4
#  *
 
5
#  * Permission to copy, use, modify, sell and distribute this software is
 
6
#  * granted provided this copyright notice appears in all copies. This
 
7
#  * software is provided "as is" without express or implied warranty, and
 
8
#  * with no claim as to its suitability for any purpose.
 
9
#  */
 
10
#
 
11
# /* Revised by Paul Mensonides (2002) */
 
12
#
 
13
# /* See http://www.boost.org for most recent version. */
 
14
#
 
15
# ifndef BOOST_PREPROCESSOR_REPETITION_ENUM_SHIFTED_PARAMS_HPP
 
16
# define BOOST_PREPROCESSOR_REPETITION_ENUM_SHIFTED_PARAMS_HPP
 
17
#
 
18
# include <boost/preprocessor/arithmetic/dec.hpp>
 
19
# include <boost/preprocessor/arithmetic/inc.hpp>
 
20
# include <boost/preprocessor/cat.hpp>
 
21
# include <boost/preprocessor/config/config.hpp>
 
22
# include <boost/preprocessor/punctuation/comma_if.hpp>
 
23
# include <boost/preprocessor/repetition/repeat.hpp>
 
24
#
 
25
# /* BOOST_PP_ENUM_SHIFTED_PARAMS */
 
26
#
 
27
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
 
28
#    define BOOST_PP_ENUM_SHIFTED_PARAMS(count, param) BOOST_PP_REPEAT(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
 
29
# else
 
30
#    define BOOST_PP_ENUM_SHIFTED_PARAMS(count, param) BOOST_PP_ENUM_SHIFTED_PARAMS_I(count, param)
 
31
#    define BOOST_PP_ENUM_SHIFTED_PARAMS_I(count, param) BOOST_PP_REPEAT(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
 
32
# endif
 
33
#
 
34
# define BOOST_PP_ENUM_SHIFTED_PARAMS_M(z, n, param) BOOST_PP_COMMA_IF(n) BOOST_PP_CAT(param, BOOST_PP_INC(n))
 
35
#
 
36
# /* BOOST_PP_ENUM_SHIFTED_PARAMS_Z */
 
37
#
 
38
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
 
39
#    define BOOST_PP_ENUM_SHIFTED_PARAMS_Z(z, count, param) BOOST_PP_REPEAT_ ## z(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
 
40
# else
 
41
#    define BOOST_PP_ENUM_SHIFTED_PARAMS_Z(z, count, param) BOOST_PP_ENUM_SHIFTED_PARAMS_Z_I(z, count, param)
 
42
#    define BOOST_PP_ENUM_SHIFTED_PARAMS_Z_I(z, count, param) BOOST_PP_REPEAT_ ## z(BOOST_PP_DEC(count), BOOST_PP_ENUM_SHIFTED_PARAMS_M, param)
 
43
# endif
 
44
#
 
45
# endif