assert.h
来自「AT80296C 单片机中使用此头文件可方便查找东西,方便于编程 板头文件」· C头文件 代码 · 共 33 行
H
33 行
/**************************************************************************
** *
** FILE : assert.h *
** *
** DESCRIPTION : Include file with prototypes and macros to add *
** diagnostics to programs *
** *
** COPYRIGHT : 1997 Tasking Software B.V., Amersfoort *
** *
**************************************************************************/
#undef assert
#ifndef _assert_h_
#define _assert_h_
#include <stdio.h> /* prototype for 'printf' */
#include <stdlib.h> /* prototype for 'abort' */
#endif
#ifndef NDEBUG
#define assert( _expr ) \
( (void)( !(_expr) ? \
printf( "Assertion failed: (" #_expr ") file %s, line %d\n", \
__FILE__, __LINE__ ),abort() : (void)0 \
))
#else
#define assert( _expr ) ((void)0)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?