Skip to content

Instantly share code, notes, and snippets.

@qiaohaijun
Created June 14, 2017 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qiaohaijun/adc91c484e0064b97ed9bf268224fd4f to your computer and use it in GitHub Desktop.
Save qiaohaijun/adc91c484e0064b97ed9bf268224fd4f to your computer and use it in GitHub Desktop.

这个问题是在看 2003年出版的pthread的书的时候看到一个 #define 宏中间的语法

#define xxx do {
\} while(0)

其实都是宏展开闹得。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment