输出调试信息宏

来源:互联网 发布:淘宝怎么撤回退款申请 编辑:程序博客网 时间:2024/05/22 09:48

#if defined( DEBUG_PARSER )
# if defined( DEBUG ) && defined( _MSC_VER )                                // VS下输出使用OutputDebugString
#  include <windows.h>
#  define PRINT_LOG OutputDebugString
# else                                                                                                   // Linux下输出使用printf

#  define PRINT_LOG printf
# endif
#endif