annotate DEPENDENCIES/generic/include/boost/phoenix/statement/detail/try_catch_eval.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 !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
Chris@16 3 #ifndef BOOST_PHOENIX_STATEMENT_DETAIL_TRY_CATCH_EVAL_HPP
Chris@16 4 #define BOOST_PHOENIX_STATEMENT_DETAIL_TRY_CATCH_EVAL_HPP
Chris@16 5
Chris@16 6 #include <boost/phoenix/support/iterate.hpp>
Chris@16 7
Chris@16 8 #include <boost/phoenix/statement/detail/preprocessed/try_catch_eval.hpp>
Chris@16 9
Chris@16 10 #endif
Chris@16 11 #else
Chris@16 12
Chris@16 13 #if !BOOST_PHOENIX_IS_ITERATING
Chris@16 14
Chris@16 15 #ifndef BOOST_PHOENIX_STATEMENT_DETAIL_TRY_CATCH_EVAL_HPP
Chris@16 16 #define BOOST_PHOENIX_STATEMENT_DETAIL_TRY_CATCH_EVAL_HPP
Chris@16 17
Chris@16 18 #include <boost/phoenix/support/iterate.hpp>
Chris@16 19
Chris@16 20 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 21 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/try_catch_eval_" BOOST_PHOENIX_LIMIT_STR ".hpp")
Chris@16 22 #endif
Chris@16 23
Chris@16 24 /*==============================================================================
Chris@16 25 Copyright (c) 2005-2010 Joel de Guzman
Chris@16 26 Copyright (c) 2010 Thomas Heller
Chris@16 27
Chris@16 28 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 29 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 30 ==============================================================================*/
Chris@16 31
Chris@16 32 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 33 #pragma wave option(preserve: 1)
Chris@16 34 #endif
Chris@16 35
Chris@16 36 #define BOOST_PHOENIX_TRY_CATCH_EVAL_R(Z, N, DATA) \
Chris@16 37 catch( \
Chris@16 38 typename proto::result_of::value< \
Chris@16 39 typename proto::result_of::child_c< \
Chris@16 40 BOOST_PP_CAT(A, N) \
Chris@16 41 , 0 \
Chris@16 42 >::type \
Chris@16 43 >::type::type & \
Chris@16 44 ) \
Chris@16 45 { \
Chris@16 46 boost::phoenix::eval(proto::child_c<1>(BOOST_PP_CAT(a, N)), ctx); \
Chris@16 47 } \
Chris@16 48 /**/
Chris@16 49
Chris@16 50
Chris@16 51 #define BOOST_PHOENIX_ITERATION_PARAMS \
Chris@16 52 (3, (1, BOOST_PHOENIX_CATCH_LIMIT, \
Chris@16 53 <boost/phoenix/statement/detail/try_catch_eval.hpp>))
Chris@16 54 #include BOOST_PHOENIX_ITERATE()
Chris@16 55
Chris@16 56 #undef BOOST_PHOENIX_TRY_CATCH_EVAL_R
Chris@16 57
Chris@16 58 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 59 #pragma wave option(output: null)
Chris@16 60 #endif
Chris@16 61
Chris@16 62 #endif
Chris@16 63
Chris@16 64 #else
Chris@16 65
Chris@16 66 template <typename Try, BOOST_PHOENIX_typename_A, typename Context>
Chris@16 67 typename boost::enable_if<
Chris@16 68 proto::matches<
Chris@16 69 BOOST_PP_CAT(A, BOOST_PP_DEC(BOOST_PHOENIX_ITERATION))
Chris@16 70 , rule::catch_
Chris@16 71 >
Chris@16 72 , result_type
Chris@16 73 >::type
Chris@16 74 operator()(Try const & try_, BOOST_PHOENIX_A_const_ref_a, Context const & ctx) const
Chris@16 75 {
Chris@16 76 try
Chris@16 77 {
Chris@16 78 boost::phoenix::eval(proto::child_c<0>(try_), ctx);
Chris@16 79 }
Chris@16 80 BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_TRY_CATCH_EVAL_R, _)
Chris@16 81 }
Chris@16 82
Chris@16 83 template <typename Try, BOOST_PHOENIX_typename_A, typename Context>
Chris@16 84 typename boost::disable_if<
Chris@16 85 proto::matches<
Chris@16 86 BOOST_PP_CAT(A, BOOST_PP_DEC(BOOST_PHOENIX_ITERATION))
Chris@16 87 , rule::catch_
Chris@16 88 >
Chris@16 89 , result_type
Chris@16 90 >::type
Chris@16 91 operator()(Try const & try_, BOOST_PHOENIX_A_const_ref_a, Context const & ctx) const
Chris@16 92 {
Chris@16 93 try
Chris@16 94 {
Chris@16 95 boost::phoenix::eval(proto::child_c<0>(try_), ctx);
Chris@16 96 }
Chris@16 97 BOOST_PP_REPEAT(
Chris@16 98 BOOST_PP_DEC(BOOST_PHOENIX_ITERATION)
Chris@16 99 , BOOST_PHOENIX_TRY_CATCH_EVAL_R, _
Chris@16 100 )
Chris@16 101 catch(...)
Chris@16 102 {
Chris@16 103 boost::phoenix::eval(
Chris@16 104 proto::child_c<0>(
Chris@16 105 BOOST_PP_CAT(a, BOOST_PP_DEC(BOOST_PHOENIX_ITERATION))
Chris@16 106 )
Chris@16 107 , ctx);
Chris@16 108 }
Chris@16 109 }
Chris@16 110
Chris@16 111 #endif
Chris@16 112
Chris@16 113 #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES