⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assert.h

📁 AT80296C 单片机中使用此头文件可方便查找东西,方便于编程 板头文件
💻 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 + -