assert.c
来自「the vxworks system kernel souce packeg.t」· C语言 代码 · 共 44 行
C
44 行
/* assert.c - ANSI standard assert function *//* Copyright 1992 Wind River Systems, Inc. *//*modification history--------------------01c,24oct92,smb removed some redundant documentation.01b,20sep92,smb documentation additions.01a,20jul92,smb written.*//*DESCRIPTIONINCLUDE FILES: stdio.h, stdlib.h, assert.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "assert.h"#include "stdio.h"#include "stdlib.h"/******************************************************************************** __assert - function called by the assert macro. ** INCLUDE: stdio.h assert.h** RETURNS: never returns* NOMANUAL*/void __assert ( const char *msg /* message string */ ) { fdprintf(2, "%s\n", CHAR_FROM_CONST (msg)); /* print msg to error stream */ abort(); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?