1 /*============================================================================= 2 Copyright (c) 2001-2003 Joel de Guzman 3 Copyright (c) 2002-2003 Hartmut Kaiser 4 http://spirit.sourceforge.net/ 5 6 Distributed under the Boost Software License, Version 1.0. (See accompanying 7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 =============================================================================*/ 9 #if !defined(BOOST_SPIRIT_MINIMAL_DEBUG_HPP) 10 #define BOOST_SPIRIT_MINIMAL_DEBUG_HPP 11 12 #if !defined(BOOST_SPIRIT_DEBUG_MAIN_HPP) 13 #error "You must include boost/spirit/debug.hpp, not boost/spirit/debug/minimal.hpp" 14 #endif 15 /////////////////////////////////////////////////////////////////////////////// 16 // 17 // Minimum debugging tools support 18 // 19 /////////////////////////////////////////////////////////////////////////////// 20 #if !defined(BOOST_SPIRIT_DEBUG_OUT) 21 #define BOOST_SPIRIT_DEBUG_OUT std::cout 22 #endif 23 24 /////////////////////////////////////////////////////////////////////////// 25 // 26 // BOOST_SPIRIT_DEBUG_FLAGS controls the level of diagnostics printed 27 // 28 /////////////////////////////////////////////////////////////////////////// 29 #if !defined(BOOST_SPIRIT_DEBUG_FLAGS_NONE) 30 #define BOOST_SPIRIT_DEBUG_FLAGS_NONE 0x0000 // no diagnostics at all 31 #endif 32 33 #if !defined(BOOST_SPIRIT_DEBUG_FLAGS_MAX) 34 #define BOOST_SPIRIT_DEBUG_FLAGS_MAX 0xFFFF // print maximal diagnostics 35 #endif 36 37 #if !defined(BOOST_SPIRIT_DEBUG_FLAGS) 38 #define BOOST_SPIRIT_DEBUG_FLAGS BOOST_SPIRIT_DEBUG_FLAGS_MAX 39 #endif 40 41 #if !defined(BOOST_SPIRIT_DEBUG_PRINT_SOME) 42 #define BOOST_SPIRIT_DEBUG_PRINT_SOME 20 43 #endif 44 45 #if !defined(BOOST_SPIRIT_DEBUG_RULE) 46 #define BOOST_SPIRIT_DEBUG_RULE(r) 47 #endif // !defined(BOOST_SPIRIT_DEBUG_RULE) 48 49 #if !defined(BOOST_SPIRIT_DEBUG_NODE) 50 #define BOOST_SPIRIT_DEBUG_NODE(r) 51 #endif // !defined(BOOST_SPIRIT_DEBUG_NODE) 52 53 #if !defined(BOOST_SPIRIT_DEBUG_GRAMMAR) 54 #define BOOST_SPIRIT_DEBUG_GRAMMAR(r) 55 #endif // !defined(BOOST_SPIRIT_DEBUG_GRAMMAR) 56 57 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE) 58 #define BOOST_SPIRIT_DEBUG_TRACE_RULE(r, t) 59 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE) 60 61 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE) 62 #define BOOST_SPIRIT_DEBUG_TRACE_NODE(r, t) 63 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE) 64 65 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR) 66 #define BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR(r, t) 67 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR) 68 69 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME) 70 #define BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME(r, n, t) 71 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME) 72 73 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME) 74 #define BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME(r, n, t) 75 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME) 76 77 #if !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME) 78 #define BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME(r, n, t) 79 #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME) 80 81 #endif // !defined(BOOST_SPIRIT_MINIMAL_DEBUG_HPP) 82