设为首页 加入收藏

TOP

__dbg.h(二)
2017-10-11 17:18:54 】 浏览:9738
Tags:__dbg.h
L__ __trace_file "\r\n");__trace_end; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #ifdef __dbg__ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define __trace_end_dbg __trace_end #define __trace_dbg __trace #define __trace_file_dbg __trace_file #define __trace_fmt_dbg __trace_fmt /**************************************************************************************************\ * 2009-06-28 显示程序的分支和判断的值 长格式:__if 显示判断的条件的文本 短格式:_if 不显示判断的条件的文本 \**************************************************************************************************/ #define __if_false(x) \ { \ char __szif[256] = {0}; \ if (!(x)) \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d == ("#x")\r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ OutputDebugStringA(__szif); \ } \ } \ if (x) /////////////////////////////////////////////////////////////////////////////////////////////////// #define __if_true(x) \ { \ char __szif[256] = {0}; \ if (x) \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d == ("#x")\r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ OutputDebugStringA(__szif); \ } \ } \ if (x) /////////////////////////////////////////////////////////////////////////////////////////////////// #define __if(x) \ { \ char __szif[256] = {0}; \ if (x) \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d == ("#x")\r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ } \ else \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d == ("#x")\r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ } \ OutputDebugStringA(__szif); \ } \ if (x) /////////////////////////////////////////////////////////////////////////////////////////////////// #define _if(x) \ { \ char __szif[256] = {0}; \ if (x) \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d \r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ } \ else \ { \ _snprintf(__szif, sizeof(__szif)-1, "%s/%d %d \r\n", strrchr(__FILE__, '\\') + 1, __LINE__, (x)); \ } \ OutputDebugStringA(__szif); \ } \ if (x) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #else /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define _if(x) if(x) #define __if(x) if(x) #define __if_true(x) if(x) #define __if_false(x) if(x) #define __trace_end_dbg } #define __trace_dbg if (0) { ( #define __trace_file_dbg if (0) { ( #define __trace_fmt_dbg if (0) { ( /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #endif /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #endif
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇【转】键盘灯亮无反映解决方法 下一篇无法安装Windows Live“OnCatalog..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目