您的位置:首页 > 其它

VS2013 里的Preprocessor definitions 有bug

2015-03-10 16:00 225 查看
问题链接

在Preprocessor definitions 里 按照官方的定义 /D[name] 是不行的

如果代码中有:

#if define(D)
#define macro1
#else
#define macro2
#endif


在VS Preprocessor definitions选项里写“/Dname”,是不行的。在vs里 macro1这一行还是灰色的,没有被激活。

然后在VS Preprocessor definitions选项里写“name” 就可以了。

如图:



图2:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: