This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
为什么我遇到错误:“需要声明”
有什么关系?
#define Rb_initialize (rb)(rb)
操作
{
(rb).read_idx = 0;
(rb).write_idx = 0;
(rb).data_CT = 0;
}
while (0);
在我看来、这似乎是一个正确的定义例程。
ephirubin0719@cox.net
您好像错过了行连续反斜杠、例如:
执行 \
{ \
(依此类推)。
未经请求:如果您要使用"do{}while (0)"表单、则应保留最后一个分号、以便您获得该表单的好处。
谢谢! Bruce。 你是对的。