assert.h
来自「MINIX系统源码」· C头文件 代码 · 共 25 行
H
25 行
/*
assert.h
*/
#ifndef INET_ASSERT_H
#define INET_ASSERT_H
#include "const.h"
#ifndef assert
#if NDEBUG
#define assert(x) 0
#define assertN(n,x) 0
#define compare(a,t,b) 0
#else
#define assert(x) (!(x) ? (ip_panic (( "assertion failed" )) \
,0) : 0)
#define assertN(n,x) (!(x) ? (ip_panic (( "assertion %d failed", n )),0) : 0)
#define compare(a,t,b) (!((a) t (b)) ? (ip_panic(( "compare failed (%d, %d)", \
a, b )),0) : 0)
#endif
#endif
#endif /* INET_ASSERT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?