Chris@102: /*============================================================================== Chris@102: Copyright (c) 2005-2010 Joel de Guzman Chris@102: Copyright (c) 2010 Thomas Heller Chris@102: Copyright (c) 2014 John Fletcher Chris@102: Chris@102: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@102: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@102: ==============================================================================*/ Chris@102: #ifndef BOOST_PHOENIX_CORE_DEBUG_HPP Chris@102: #define BOOST_PHOENIX_CORE_DEBUG_HPP Chris@102: Chris@102: #include Chris@102: #include Chris@102: // Some other things may be needed here... Chris@102: Chris@102: // Include all proto for the time being... Chris@102: #include Chris@102: Chris@102: namespace boost { namespace phoenix Chris@102: { Chris@102: Chris@102: // For now just drop through to the Proto versions. Chris@102: Chris@102: /// \brief Pretty-print a Phoenix expression tree using the Proto code. Chris@102: /// Chris@102: /// \note Equivalent to functional::display_expr(0, sout)(expr) Chris@102: /// \param expr The Phoenix expression tree to pretty-print Chris@102: /// \param sout The \c ostream to which the output should be Chris@102: /// written. If not specified, defaults to Chris@102: /// std::cout. Chris@102: template Chris@102: void display_expr(Expr const &expr, std::ostream &sout) Chris@102: { Chris@102: boost::proto::display_expr(expr,sout); Chris@102: } Chris@102: Chris@102: /// \overload Chris@102: /// Chris@102: template Chris@102: void display_expr(Expr const &expr) Chris@102: { Chris@102: boost::proto::display_expr(expr); Chris@102: } Chris@102: Chris@102: } // namespace phoenix Chris@102: } // namespace boost Chris@102: Chris@102: Chris@102: Chris@102: #endif