Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

assert.c File Reference

#include <stdio.h>
#include <stdlib.h>

Include dependency graph for assert.c:

Include dependency graph

Go to the source code of this file.

Functions

int _assert (char *e, char *file, int line)


Function Documentation

int _assert char *  e,
char *  file,
int  line
 

Definition at line 5 of file assert.c.

References abort(), e, fflush(), file, fprintf(), line, and stderr.

00005                                            {
00006     fprintf(stderr, "assertion failed:");
00007     if (e)
00008         fprintf(stderr, " %s", e);
00009     if (file)
00010         fprintf(stderr, " file %s", file);
00011     fprintf(stderr, " line %d\n", line);
00012     fflush(stderr);
00013     abort();
00014     return 0;
00015 }

Here is the call graph for this function:


Generated on Thu Aug 25 15:49:28 2005 for Quake III Arena by  doxygen 1.3.9.1