HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
C standard library header filesassert.h providing macro called assert,which can be used to verify the assumptions made in the program, and the assumption is false output diagnostic messages.
Assert macro defined point to another macro NDEBUG,macroNDEBUGnot <assert.h> part. If you have defined as a macro name in reference NDEBUG <assert.h> source file, theassert macro is defined as follows:
#define assert(ignore) ((void)0)
Listed below are the only functions defined in the header file assert.h:
序号 | 函数 & 描述 |
---|---|
1 | void assert(int expression) 这实际上是一个宏,不是一个函数,可用于在 C 程序中添加诊断。 |