📄 assert.h
字号:
/**************************************************************************
** *
** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -