【发布时间】:2012-06-03 08:17:41
【问题描述】:
test.c
#define COMMENT /##/
int main()
{
...
COMMENT int atest;
...
}
错误信息:
atest.c:16:1: error: pasting "/" and "/" does not give a valid preprocessing token
atest.c: In function 'main':
atest.c:16: error: expected expression before '/' token
虽然 Microsoft C 编译器对 COMMENT 宏很满意。 here的小费也不行。
有人可以为此提供解决方案或解释吗?谢谢。
【问题讨论】: