assert.h

来自「TI公司的CCS一些常用的函数库」· C头文件 代码 · 共 22 行

H
22
字号
///////////////////////////////////////////////////////////////////////////
////        (C) Copyright 1996,2003 Custom Computer Services           ////
//// This source code may only be used by licensed users of the CCS C  ////
//// compiler.  This source code may only be distributed to other      ////
//// licensed users of the CCS C compiler.  No other use, reproduction ////
//// or distribution is permitted without written permission.          ////
//// Derivative programs created using this software in object code    ////
//// form are not restricted in any way.                               ////
///////////////////////////////////////////////////////////////////////////

/* assert.h*/

#undef assert
#ifdef NDEBUG
   #define assert(test) (0)
#else
   #define assert(test) if(!(test)) { fprintf(stderr,"Assertion failed:"#test" ,file ");\
                                    fprintf(stderr,__FILE__);\
                                    fprintf(stderr," ,line %lu\r\n",(long)__LINE__);}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?