【发布时间】:2010-12-08 11:57:18
【问题描述】:
在 Xcode 中,我可以在宏中使用 ## 吗?
在 MSVC 中我可以写:
#define FOO(_var) int foo##_var## = 1
FOO(bar);
foobar++;
在 Mac 上(edit: 使用 GCC 编译)相同的代码给我错误“粘贴“foobar”和“=”没有给出有效的预处理令牌。## 不支持xcode?p>
【问题讨论】:
标签: xcode preprocessor