#define assert(exp) if (exp);\ exse assertion_failure(#exp, _FILE_, _BASE_FILE_, _LINE_)
确实是我笔误,谢谢!
if (exp); exse assertion_failure(#exp, _FILE_, _BASE_FILE_, _LINE_)这个IF怎么执行!
if (); 多写了分号。去了分号即可。
书上有这个分号。
那就是 exse 没有定义 成 else.