ansiassert.c

来自「the vxworks system kernel souce packeg.t」· C语言 代码 · 共 55 行

C
55
字号
/* ansiAssert.c - ANSI 'assert' documentation *//* Copyright 1992 Wind River Systems, Inc. *//*modification history--------------------01a,24oct92,smb  written.*//*DESCRIPTIONThe header assert.h defines the assert() macro and refers to anothermacro, NDEBUG, which is not defined by assert.h.  If NDEBUG is definedas a macro at the point in the source file where assert.h is included,the assert() macro is defined simply as:.CS    #define assert(ignore) ((void)0).CEANSI specifies that assert() 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.INCLUDE FILES: stdio.h, stdlib.h, assert.hSEE ALSO: American National Standard X3.159-1989*//******************************************************************************** assert - put diagnostics into programs (ANSI)* * If an expression is false (that is, equal to zero), the assert() macro* writes information about the failed call to standard error in an* implementation-defined format.  It then calls abort().* The diagnostic information includes:*     - the text of the argument*     - the name of the source file (value of preprocessor macro __FILE__)*     - the source line number (value of preprocessor macro __LINE__)** INCLUDE: stdio.h, stdlib.h, assert.h* * RETURNS: N/A* */  void assert    (    int a    )    {    /* This is a dummy for documentation purposes */    }

⌨️ 快捷键说明

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