当前位置: C语言 -- 标准库 -- <assert.h>

<assert.h>头文件

<assert.h>头文件定义了三个宏,并引用了一个宏,具体如下:

功能测试宏(feature test macro):
__STDC_VERSION_ASSERT_H__ 表示<assert.h>头文件版本的宏。

宏(macro):
assert 程序运行时测试断言的宏。
NDEBUG 影响宏assert行为的宏。
static_assert 程序编译时测试断言的宏。