下面一个断言:EVUTIL_ASSERT(chain->refcnt > 0);
看其实现:
#define EVUTIL_ASSERT(cond) EVUTIL_NIL_CONDITION_(cond)
#define EVUTIL_NIL_CONDITION_(condition) do {\
(void)sizeof(!(condition));\
}while(0)
疑问
http://bbs.chinaunix.net/thread-3612450-1-1.html
判断表达式是否为真。
void是为了消除警告。因为没使用变量