This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
将
;
从定义中去掉。为什么?
因为#define语法是这样的,
每次FOO出现的时候都会被BAR代替。
因此,您的代码执行了以下操作
并
给出了
无效的 c 语法,它期望看到 ')' 因此
Tom Karzes 指出的
更好,就像您对其他定义所做的那样
Take the
;
off the defines.why?
Because #define syntax is this
Every time FOO appears it is replaced by BAR.
So your code did the following
and
giving
which is not valid c syntax, it expected to see a ')' hence
as pointed out by Tom Karzes better is
as you did for the other defines