作业帮 > 综合 > 作业

#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE 是什么意思?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/30 08:40:09
#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE 是什么意思?
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
在debug8版本(调试版本),就将new(申请内存)的操作符改成DEBUG_NEW,估计会抛异常等带调试手段的函数
取消THIS_FILE这个宏的定义