Standard library header <assert.h>
From cppreference.net
Standard Library headers
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
此头文件是 错误处理 库的组成部分。
宏 |
|
|
若用户指定的条件不为
true
则终止程序。发行版本中可能被禁用
(函数宏) |
|
概要
#if __STDC_VERSION__ >= 202311L # define __STDC_VERSION_ASSERT_H__ 202311L # ifdef NDEBUG # define assert(...) ((void)0) # else # define assert(...) /* 实现定义 */ # endif #else # ifdef NDEBUG # define assert(condition) ((void)0) # else # define assert(condition) /* 实现定义 */ # endif #endif