有篇文章解释很清楚:do {...} while (0) in macros然后,一位女程序媛把它翻译了一遍,排版清晰,想省力的看这边。do {...} while (0) 在宏定义中的作用 转载于:https://www.cnblogs.com/sword03/p/9318883.html