📄 ansiassert.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ansiAssert.html - generated by refgen from ansiAssert.c --> <title> ansiAssert </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>ansiAssert</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ansiAssert</strong> - ANSI <b>assert</b> documentation </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ansiAssert.html#assert">assert</a></i>( )</b> - put diagnostics into programs (ANSI)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>The header <b>assert.h</b> defines the <b><i><a href="./ansiAssert.html#assert">assert</a></i>( )</b> macro and refers to anothermacro, NDEBUG, which is not defined by <b>assert.h</b>. If NDEBUG is definedas a macro at the point in the source file where <b>assert.h</b> is included,the <b><i><a href="./ansiAssert.html#assert">assert</a></i>( )</b> macro is defined simply as:<pre> #define assert(ignore) ((void)0)</pre>ANSI specifies that <b><i><a href="./ansiAssert.html#assert">assert</a></i>( )</b> should be implemented as a macro, not as aroutine. If the macro definition is suppressed in order to access anactual routine, the behavior is undefined.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdio.h</b>, <b>stdlib.h</b>, <b>assert.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiAssert.html#top">ansiAssert</a></b>, American National Standard X3.159-1989<hr><a name="assert"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>assert</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>assert</i>( )</strong> - put diagnostics into programs (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void assert ( int a )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>If an expression is false (that is, equal to zero), the <b><i><a href="./ansiAssert.html#assert">assert</a></i>( )</b> macrowrites information about the failed call to standard error in animplementation-defined format. It then calls <b><i><a href="./ansiStdlib.html#abort">abort</a></i>( )</b>.The diagnostic information includes:<br> - the text of the argument<br> - the name of the source file (value of preprocessor macro <b>__FILE__</b>)<br> - the source line number (value of preprocessor macro <b>__LINE__</b>)<p></blockquote><h4>INCLUDE</h4><blockquote><p><b>stdio.h</b>, <b>stdlib.h</b>, <b>assert.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiAssert.html#top">ansiAssert</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -