x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
debug.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\spirit\debug.hpp
旋转
特效
属性
历史版本
/*============================================================================= Copyright (c) 2001-2003 Joel de Guzman Copyright (c) 2002-2003 Hartmut Kaiser http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #if !defined(BOOST_SPIRIT_DEBUG_MAIN_HPP) #define BOOST_SPIRIT_DEBUG_MAIN_HPP /////////////////////////////////////////////////////////////////////////// #if defined(BOOST_SPIRIT_DEBUG) #include
/////////////////////////////////////////////////////////////////////////////// // // Spirit.Debug includes and defines // /////////////////////////////////////////////////////////////////////////////// #include
/////////////////////////////////////////////////////////////////////////// // // The BOOST_SPIRIT_DEBUG_OUT defines the stream object, which should be used // for debug diagnostics. This defaults to std::cout. // /////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_SPIRIT_DEBUG_OUT) #define BOOST_SPIRIT_DEBUG_OUT std::cout #endif /////////////////////////////////////////////////////////////////////////// // // The BOOST_SPIRIT_DEBUG_PRINT_SOME constant defines the number of characters // from the stream to be printed for diagnosis. This defaults to the first // 20 characters. // /////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_SPIRIT_DEBUG_PRINT_SOME) #define BOOST_SPIRIT_DEBUG_PRINT_SOME 20 #endif /////////////////////////////////////////////////////////////////////////// // // Additional BOOST_SPIRIT_DEBUG_FLAGS control the level of diagnostics printed // Basic constants are defined in debug/minimal.hpp. // /////////////////////////////////////////////////////////////////////////// #define BOOST_SPIRIT_DEBUG_FLAGS_NODES 0x0001 // node diagnostics #define BOOST_SPIRIT_DEBUG_FLAGS_ESCAPE_CHAR 0x0002 // escape_char_parse diagnostics #define BOOST_SPIRIT_DEBUG_FLAGS_TREES 0x0004 // parse tree/ast diagnostics #define BOOST_SPIRIT_DEBUG_FLAGS_CLOSURES 0x0008 // closure diagnostics #define BOOST_SPIRIT_DEBUG_FLAGS_SLEX 0x8000 // slex diagnostics #define BOOST_SPIRIT_DEBUG_FLAGS_MAX 0xFFFF // print maximal diagnostics #if !defined(BOOST_SPIRIT_DEBUG_FLAGS) #define BOOST_SPIRIT_DEBUG_FLAGS BOOST_SPIRIT_DEBUG_FLAGS_MAX #endif /////////////////////////////////////////////////////////////////////////// // // By default all nodes are traced (even those, not registered with // BOOST_SPIRIT_DEBUG_RULE et.al. - see below). The following constant may be // used to redefine this default. // /////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_SPIRIT_DEBUG_TRACENODE) #define BOOST_SPIRIT_DEBUG_TRACENODE (true) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACENODE) /////////////////////////////////////////////////////////////////////////// // // Helper macros for giving rules and subrules a name accessible through // parser_name() functions (see parser_names.hpp). // // Additionally, the macros BOOST_SPIRIT_DEBUG_RULE, SPIRIT_DEBUG_NODE and // BOOST_SPIRIT_DEBUG_GRAMMAR enable/disable the tracing of the // correspondingnode accordingly to the PP constant // BOOST_SPIRIT_DEBUG_TRACENODE. // // The macros BOOST_SPIRIT_DEBUG_TRACE_RULE, BOOST_SPIRIT_DEBUG_TRACE_NODE // and BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR allow to specify a flag to define, // whether the corresponding node is to be traced or not. // /////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_SPIRIT_DEBUG_RULE) #define BOOST_SPIRIT_DEBUG_RULE(r) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, BOOST_SPIRIT_DEBUG_TRACENODE) #endif // !defined(BOOST_SPIRIT_DEBUG_RULE) #if !defined(BOOST_SPIRIT_DEBUG_NODE) #define BOOST_SPIRIT_DEBUG_NODE(r) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, BOOST_SPIRIT_DEBUG_TRACENODE) #endif // !defined(BOOST_SPIRIT_DEBUG_NODE) #if !defined(BOOST_SPIRIT_DEBUG_GRAMMAR) #define BOOST_SPIRIT_DEBUG_GRAMMAR(r) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, BOOST_SPIRIT_DEBUG_TRACENODE) #endif // !defined(BOOST_SPIRIT_DEBUG_GRAMMAR) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE) #define BOOST_SPIRIT_DEBUG_TRACE_RULE(r, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, (t)) #endif // !defined(BOOST_SPIRIT_TRACE_RULE) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE) #define BOOST_SPIRIT_DEBUG_TRACE_NODE(r, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, (t)) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR) #define BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR(r, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, #r, (t)) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME) #define BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME(r, n, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, (n), (t)) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_RULE_NAME) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME) #define BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME(r, n, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, (n), (t)) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_NODE_NAME) #if !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME) #define BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME(r, n, t) \ ::boost::spirit::impl::get_node_registry().register_node(&r, (n), (t)) #endif // !defined(BOOST_SPIRIT_DEBUG_TRACE_GRAMMAR_NAME) ////////////////////////////////// #include
#else ////////////////////////////////// #include
#endif // BOOST_SPIRIT_DEBUG #endif
debug.hpp
网页地址
文件地址
上一页
4/11
下一页
下载
( 6 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.