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