#define ASSERT(exp) (void)((exp)||(_assert(#exp,__FILE__,__LINE__),0))
void _assert(void * exp, void * file, unsigned int line){
printf("Assertion failed: %s, file %s, line %d\n",exp,file,line);
abort();
}
ASSERTC语言实现
最新推荐文章于 2024-03-06 22:03:19 发布