2
#if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
3
#ifndef BOOST_PHOENIX_SCOPE_DETAIL_MAKE_LOCALS_HPP
4
#define BOOST_PHOENIX_SCOPE_DETAIL_MAKE_LOCALS_HPP
6
#include <boost/phoenix/support/iterate.hpp>
8
#include <boost/phoenix/scope/detail/preprocessed/make_locals.hpp>
13
#if !BOOST_PHOENIX_IS_ITERATING
15
#ifndef BOOST_PHOENIX_SCOPE_DETAIL_MAKE_LOCALS_HPP
16
#define BOOST_PHOENIX_SCOPE_DETAIL_MAKE_LOCALS_HPP
18
#include <boost/phoenix/support/iterate.hpp>
20
#if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
21
#pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_locals_" BOOST_PHOENIX_LIMIT_STR ".hpp")
24
/*==============================================================================
25
Copyright (c) 2005-2010 Joel de Guzman
26
Copyright (c) 2010 Thomas Heller
28
Distributed under the Boost Software License, Version 1.0. (See accompanying
29
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
30
==============================================================================*/
32
#if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
33
#pragma wave option(preserve: 1)
36
#define BOOST_PHOENIX_TYPEDEF_LOCAL_TYPES(Z, N, D) \
38
typename proto::result_of::value< \
39
typename proto::result_of::child_c< \
44
BOOST_PP_CAT(tag_type, N); \
47
typename proto::result_of::child_c< \
51
BOOST_PP_CAT(var_type, N); \
54
#define BOOST_PHOENIX_TYPEDEF_LOCAL_PAIR_TYPES(Z, N, D) \
55
BOOST_PP_COMMA_IF(N) \
56
fusion::pair<BOOST_PP_CAT(tag_type, N), BOOST_PP_CAT(var_type, N)> \
59
#define BOOST_PHOENIX_CHILD_OF(Z, N, D) \
60
BOOST_PP_COMMA_IF(N) proto::child_c<1>(BOOST_PP_CAT(a, N)) \
64
#define BOOST_PHOENIX_ITERATION_PARAMS \
65
(3, (1, BOOST_PHOENIX_LOCAL_LIMIT, \
66
<boost/phoenix/scope/detail/make_locals.hpp>))
67
#include BOOST_PHOENIX_ITERATE()
69
#if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
70
#pragma wave option(output: null)
77
template <BOOST_PHOENIX_typename_A>
78
struct make_locals<BOOST_PHOENIX_A>
81
BOOST_PHOENIX_ITERATION
82
, BOOST_PHOENIX_TYPEDEF_LOCAL_TYPES
87
BOOST_PHOENIX_ITERATION
88
, BOOST_PHOENIX_TYPEDEF_LOCAL_PAIR_TYPES
93
static type const make(BOOST_PHOENIX_A_a)
98
BOOST_PHOENIX_ITERATION
99
, BOOST_PHOENIX_CHILD_OF
108
#endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES