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

« back to all changes in this revision

Viewing changes to boost/boost/preprocessor/list/fold_right.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
# /* 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_LIST_FOLD_RIGHT_HPP
 
16
# define BOOST_PREPROCESSOR_LIST_FOLD_RIGHT_HPP
 
17
#
 
18
# include <boost/preprocessor/cat.hpp>
 
19
# include <boost/preprocessor/control/while.hpp>
 
20
# include <boost/preprocessor/debug/error.hpp>
 
21
# include <boost/preprocessor/detail/auto_rec.hpp>
 
22
#
 
23
# if 0
 
24
#    define BOOST_PP_LIST_FOLD_RIGHT(op, state, list)
 
25
# endif
 
26
#
 
27
# define BOOST_PP_LIST_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_LIST_FOLD_RIGHT_, BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256))
 
28
#
 
29
# define BOOST_PP_LIST_FOLD_RIGHT_257(o, s, l) BOOST_PP_ERROR(0x0004)
 
30
#
 
31
# define BOOST_PP_LIST_FOLD_RIGHT_D(d, o, s, l) BOOST_PP_LIST_FOLD_RIGHT_ ## d(o, s, l)
 
32
# define BOOST_PP_LIST_FOLD_RIGHT_2ND BOOST_PP_LIST_FOLD_RIGHT
 
33
# define BOOST_PP_LIST_FOLD_RIGHT_2ND_D BOOST_PP_LIST_FOLD_RIGHT_D
 
34
#
 
35
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
 
36
#    include <boost/preprocessor/list/detail/edg/fold_right.hpp>
 
37
# else
 
38
#    include <boost/preprocessor/list/detail/fold_right.hpp>
 
39
# endif
 
40
#
 
41
# endif