hmj*_*hmj 3 c macros gcc comments
atest.c
#define COMMENT /##/
int main()
{
...
COMMENT int atest;
...
}
Run Code Online (Sandbox Code Playgroud)
错误消息:
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宏感到满意.这里的提示也不起作用.
有人可以为此提供解决方案或解释吗?谢谢.