作业帮 > 综合 > 作业

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

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