2 // (C) Copyright Tobias Schwinger
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
7 //------------------------------------------------------------------------------
9 // no include guards, this file is intended for multiple inclusions
12 // this file has been generated from the master.hpp file in the same directory
13 # pragma wave option(preserve: 0)
17 #if !BOOST_PP_IS_ITERATING
19 # ifndef BOOST_FT_DETAIL_CC_LOOP_MASTER_HPP_INCLUDED
20 # define BOOST_FT_DETAIL_CC_LOOP_MASTER_HPP_INCLUDED
21 # include <boost/function_types/config/cc_names.hpp>
23 # include <boost/preprocessor/cat.hpp>
24 # include <boost/preprocessor/seq/size.hpp>
25 # include <boost/preprocessor/seq/elem.hpp>
26 # include <boost/preprocessor/tuple/elem.hpp>
27 # include <boost/preprocessor/iteration/iterate.hpp>
28 # include <boost/preprocessor/facilities/expand.hpp>
29 # include <boost/preprocessor/arithmetic/inc.hpp>
32 # include <boost/function_types/detail/encoding/def.hpp>
33 # include <boost/function_types/detail/encoding/aliases_def.hpp>
35 # define BOOST_PP_FILENAME_1 \
36 <boost/function_types/detail/pp_cc_loop/master.hpp>
37 # define BOOST_PP_ITERATION_LIMITS \
38 (0,BOOST_PP_SEQ_SIZE(BOOST_FT_CC_NAMES_SEQ)-1)
39 # include BOOST_PP_ITERATE()
40 # if !defined(BOOST_FT_config_valid) && BOOST_FT_CC_PREPROCESSING
41 # define BOOST_FT_cc_id 1
42 # define BOOST_FT_cc_name implicit_cc
43 # define BOOST_FT_cc BOOST_PP_EMPTY
44 # define BOOST_FT_cond callable_builtin
45 # include BOOST_FT_cc_file
47 # undef BOOST_FT_cc_name
49 # undef BOOST_FT_cc_id
50 # elif !defined(BOOST_FT_config_valid) // and generating preprocessed file
51 BOOST_PP_EXPAND(#) ifndef BOOST_FT_config_valid
52 BOOST_PP_EXPAND(#) define BOOST_FT_cc_id 1
53 BOOST_PP_EXPAND(#) define BOOST_FT_cc_name implicit_cc
54 BOOST_PP_EXPAND(#) define BOOST_FT_cc BOOST_PP_EMPTY
55 BOOST_PP_EXPAND(#) define BOOST_FT_cond callable_builtin
57 BOOST_PP_EXPAND(#) include BOOST_FT_cc_file
59 BOOST_PP_EXPAND(#) undef BOOST_FT_cond
60 BOOST_PP_EXPAND(#) undef BOOST_FT_cc_name
61 BOOST_PP_EXPAND(#) undef BOOST_FT_cc
62 BOOST_PP_EXPAND(#) undef BOOST_FT_cc_id
63 BOOST_PP_EXPAND(#) else
64 BOOST_PP_EXPAND(#) undef BOOST_FT_config_valid
65 BOOST_PP_EXPAND(#) endif
68 # undef BOOST_FT_config_valid
71 # include <boost/function_types/detail/encoding/aliases_undef.hpp>
72 # include <boost/function_types/detail/encoding/undef.hpp>
74 #elif BOOST_FT_CC_PREPROCESSING
76 # define BOOST_FT_cc_id BOOST_PP_INC(BOOST_PP_FRAME_ITERATION(1))
77 # define BOOST_FT_cc_inf \
78 BOOST_PP_SEQ_ELEM(BOOST_PP_FRAME_ITERATION(1),BOOST_FT_CC_NAMES_SEQ)
80 # define BOOST_FT_cc_pp_name BOOST_PP_TUPLE_ELEM(3,0,BOOST_FT_cc_inf)
81 # define BOOST_FT_cc_name BOOST_PP_TUPLE_ELEM(3,1,BOOST_FT_cc_inf)
82 # define BOOST_FT_cc BOOST_PP_TUPLE_ELEM(3,2,BOOST_FT_cc_inf)
84 # define BOOST_FT_cond BOOST_PP_CAT(BOOST_FT_CC_,BOOST_FT_cc_pp_name)
87 # define BOOST_FT_config_valid 1
88 # include BOOST_FT_cc_file
93 # undef BOOST_FT_cc_pp_name
94 # undef BOOST_FT_cc_name
97 # undef BOOST_FT_cc_id
98 # undef BOOST_FT_cc_inf
100 #else // if generating preprocessed file
101 BOOST_PP_EXPAND(#) define BOOST_FT_cc_id BOOST_PP_INC(BOOST_PP_ITERATION())
103 # define BOOST_FT_cc_inf \
104 BOOST_PP_SEQ_ELEM(BOOST_PP_ITERATION(),BOOST_FT_CC_NAMES_SEQ)
106 # define BOOST_FT_cc_pp_name BOOST_PP_TUPLE_ELEM(3,0,BOOST_FT_cc_inf)
108 # define BOOST_FT_CC_DEF(name,index) \
109 name BOOST_PP_TUPLE_ELEM(3,index,BOOST_FT_cc_inf)
110 BOOST_PP_EXPAND(#) define BOOST_FT_CC_DEF(BOOST_FT_cc_name,1)
111 BOOST_PP_EXPAND(#) define BOOST_FT_CC_DEF(BOOST_FT_cc,2)
112 # undef BOOST_FT_CC_DEF
114 # define BOOST_FT_cc_cond_v BOOST_PP_CAT(BOOST_FT_CC_,BOOST_FT_cc_pp_name)
115 BOOST_PP_EXPAND(#) define BOOST_FT_cond BOOST_FT_cc_cond_v
116 # undef BOOST_FT_cc_cond_v
118 # undef BOOST_FT_cc_pp_name
119 # undef BOOST_FT_cc_inf
121 BOOST_PP_EXPAND(#) if BOOST_FT_cond
122 BOOST_PP_EXPAND(#) define BOOST_FT_config_valid 1
124 BOOST_PP_EXPAND(#) include BOOST_FT_cc_file
126 BOOST_PP_EXPAND(#) endif
128 BOOST_PP_EXPAND(#) undef BOOST_FT_cond
130 BOOST_PP_EXPAND(#) undef BOOST_FT_cc_name
131 BOOST_PP_EXPAND(#) undef BOOST_FT_cc
133 BOOST_PP_EXPAND(#) undef BOOST_FT_cc_id