#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif

来源:互联网 发布:软件培训学校 北京 编辑:程序博客网 时间:2024/05/22 11:55
#ifdef _DEBUG //如果_DEBUG已定义
#undef THIS_FILE //取消定义THIS_FILE
static char THIS_FILE[]=__FILE__;//定义THIS_FILE,把当前的文件名存入THIS_FILE中
#define new DEBUG_NEW //定义DEBUG_NEW
#endif
0 0
原创粉丝点击