annotate DEPENDENCIES/generic/include/boost/phoenix/statement/detail/catch_push_back.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1
Chris@16 2 #if !BOOST_PHOENIX_IS_ITERATING
Chris@16 3
Chris@16 4 #ifndef BOOST_PHOENIX_STATEMENT_DETAIL_CATCH_PUSH_BACK_HPP
Chris@16 5 #define BOOST_PHOENIX_STATEMENT_DETAIL_CATCH_PUSH_BACK_HPP
Chris@16 6
Chris@16 7 #include <boost/phoenix/support/iterate.hpp>
Chris@16 8
Chris@16 9 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
Chris@16 10
Chris@16 11 #include <boost/phoenix/statement/detail/preprocessed/catch_push_back.hpp>
Chris@16 12
Chris@16 13 #else
Chris@16 14
Chris@16 15 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 16 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/catch_push_back_" BOOST_PHOENIX_LIMIT_STR ".hpp")
Chris@16 17 #endif
Chris@16 18
Chris@16 19 /*==============================================================================
Chris@16 20 Copyright (c) 2005-2010 Joel de Guzman
Chris@16 21 Copyright (c) 2010 Thomas Heller
Chris@16 22
Chris@16 23 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 24 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 25 ==============================================================================*/
Chris@16 26
Chris@16 27 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 28 #pragma wave option(preserve: 1)
Chris@16 29 #endif
Chris@16 30
Chris@16 31 #define BOOST_PHOENIX_CATCH_PUSH_BACK_R0(Z, N, DATA) \
Chris@16 32 BOOST_PP_COMMA_IF(N) \
Chris@16 33 typename proto::result_of::child_c<TryCatch, N>::type \
Chris@16 34 /**/
Chris@16 35
Chris@16 36 #define BOOST_PHOENIX_CATCH_PUSH_BACK_R1(Z, N, DATA) \
Chris@16 37 BOOST_PP_COMMA_IF(N) proto::child_c<N>(try_catch) \
Chris@16 38 /**/
Chris@16 39
Chris@16 40 #define BOOST_PHOENIX_ITERATION_PARAMS \
Chris@16 41 (3, (2, BOOST_PHOENIX_CATCH_LIMIT, \
Chris@16 42 <boost/phoenix/statement/detail/catch_push_back.hpp>))
Chris@16 43 #include BOOST_PHOENIX_ITERATE()
Chris@16 44
Chris@16 45 #undef BOOST_PHOENIX_CATCH_PUSH_BACK_R0
Chris@16 46 #undef BOOST_PHOENIX_CATCH_PUSH_BACK_R1
Chris@16 47
Chris@16 48 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 49 #pragma wave option(output: null)
Chris@16 50 #endif
Chris@16 51
Chris@16 52 #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES
Chris@16 53
Chris@16 54 #endif
Chris@16 55
Chris@16 56 #else
Chris@16 57 template <typename TryCatch, typename Exception, typename Expr>
Chris@16 58 struct catch_push_back<TryCatch, Exception, Expr, BOOST_PHOENIX_ITERATION>
Chris@16 59 {
Chris@16 60 typedef
Chris@16 61 typename proto::result_of::make_expr<
Chris@16 62 phoenix::tag::catch_
Chris@16 63 , proto::basic_default_domain
Chris@16 64 , catch_exception<Exception>
Chris@16 65 , Expr
Chris@16 66 >::type
Chris@16 67 catch_expr;
Chris@16 68
Chris@16 69 typedef phoenix::expression::try_catch<
Chris@16 70 BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_CATCH_PUSH_BACK_R0, _)
Chris@16 71 , catch_expr> gen_type;
Chris@16 72 typedef typename gen_type::type type;
Chris@16 73
Chris@16 74 static type
Chris@16 75 make(
Chris@16 76 TryCatch const& try_catch
Chris@16 77 , Expr const& catch_
Chris@16 78 )
Chris@16 79 {
Chris@16 80 return
Chris@16 81 gen_type::make(
Chris@16 82 BOOST_PP_REPEAT(
Chris@16 83 BOOST_PHOENIX_ITERATION
Chris@16 84 , BOOST_PHOENIX_CATCH_PUSH_BACK_R1
Chris@16 85 , _
Chris@16 86 )
Chris@16 87 , proto::make_expr<
Chris@16 88 phoenix::tag::catch_
Chris@16 89 , proto::basic_default_domain
Chris@16 90 >(catch_exception<Exception>(), catch_)
Chris@16 91 );
Chris@16 92 }
Chris@16 93 };
Chris@16 94
Chris@16 95 template <typename TryCatch, typename Expr>
Chris@16 96 struct catch_all_push_back<TryCatch, Expr, BOOST_PHOENIX_ITERATION>
Chris@16 97 {
Chris@16 98 typedef
Chris@16 99 typename proto::result_of::make_expr<
Chris@16 100 phoenix::tag::catch_all
Chris@16 101 , proto::basic_default_domain
Chris@16 102 , Expr
Chris@16 103 >::type
Chris@16 104 catch_expr;
Chris@16 105
Chris@16 106 typedef phoenix::expression::try_catch<
Chris@16 107 BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_CATCH_PUSH_BACK_R0, _)
Chris@16 108 , catch_expr> gen_type;
Chris@16 109 typedef typename gen_type::type type;
Chris@16 110
Chris@16 111 static type
Chris@16 112 make(
Chris@16 113 TryCatch const& try_catch
Chris@16 114 , Expr const& catch_
Chris@16 115 )
Chris@16 116 {
Chris@16 117 return
Chris@16 118 gen_type::make(
Chris@16 119 BOOST_PP_REPEAT(
Chris@16 120 BOOST_PHOENIX_ITERATION
Chris@16 121 , BOOST_PHOENIX_CATCH_PUSH_BACK_R1
Chris@16 122 , _
Chris@16 123 )
Chris@16 124 , proto::make_expr<
Chris@16 125 phoenix::tag::catch_all
Chris@16 126 , proto::basic_default_domain
Chris@16 127 >(catch_)
Chris@16 128 );
Chris@16 129 }
Chris@16 130 };
Chris@16 131
Chris@16 132 #endif