#define CHECK2(condition, message) \
(!(condition)) ? (std::cerr << "Assertion failed: (" << #condition << "), " \
<< "function " << __FUNCTION__ << ", file " << __FILE__ << ", line " << __LINE__ << "." << std::endl \
<< message << std::endl, \
abort(), 0) \
: 1
// CHECK2(condition, "message: " << var);
手机扫一扫
移动阅读更方便
你可能感兴趣的文章