【发布时间】:2011-12-14 05:28:00
【问题描述】:
我的一个头文件中有以下示例代码:
#ifdef _DEBUG
#define _DEBUG_NEW_REDEFINE_NEW 0
#include "debug_new.h"
#else
#define DEBUG_NEW new
#endif
包含此头文件的应用程序是使用带有-DDEBUG 选项的 gcc 编译器编译的。
问题:
是否因为-DDEBUG 选项而定义了_DEBUG?
【问题讨论】:
标签: debugging gcc c-preprocessor compiler-options