1 /*==============================================================================
2 Copyright (c) 2005-2010 Joel de Guzman
3 Copyright (c) 2010 Thomas Heller
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #ifndef BOOST_PHOENIX_CORE_DETAIL_FUNCTION_EQUAL_HPP
9 #define BOOST_PHOENIX_CORE_DETAIL_FUNCTION_EQUAL_HPP
11 #include <boost/preprocessor/arithmetic/inc.hpp>
12 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
14 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
15 #include <boost/phoenix/core/detail/cpp03/preprocessed/function_equal.hpp>
17 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
18 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/function_equal_" BOOST_PHOENIX_LIMIT_STR ".hpp")
20 /*==============================================================================
21 Copyright (c) 2001-2010 Joel de Guzman
22 Copyright (c) 2004 Daniel Wallin
23 Copyright (c) 2010 Thomas Heller
25 Distributed under the Boost Software License, Version 1.0. (See accompanying
26 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
27 ==============================================================================*/
28 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
29 #pragma wave option(preserve: 1)
32 #define BOOST_PHOENIX_FUNCTION_EQUAL_R(Z, N, DATA) \
33 && function_equal_()( \
34 proto::child_c< N >(e1) \
35 , proto::child_c< N >(e2) \
39 #define BOOST_PHOENIX_FUNCTION_EQUAL(Z, N, DATA) \
40 template <typename Expr1> \
50 proto::child_c<0>(e1) \
51 , proto::child_c<0>(e2) \
53 BOOST_PP_REPEAT_FROM_TO( \
56 , BOOST_PHOENIX_FUNCTION_EQUAL_R \
62 BOOST_PP_REPEAT_FROM_TO(
64 , BOOST_PP_INC(BOOST_PROTO_MAX_ARITY)
65 , BOOST_PHOENIX_FUNCTION_EQUAL
68 #undef BOOST_PHOENIX_FUNCTION_EQUAL_R
69 #undef BOOST_PHOENIX_FUNCTION_EQUAL
71 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
72 #pragma wave option(output: null)