source: trunk/src/objects/RpUtils2.c @ 6303

Last change on this file since 6303 was 5673, checked in by ldelgass, 9 years ago

Fix line endings, set eol-style to native on all C/C++ sources.

  • Property svn:eol-style set to native
File size: 508 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3#include <stdarg.h>
4
5void
6Rp_Assert(testExpr, fileName, lineNumber)
7    char *testExpr;
8    char *fileName;
9    int lineNumber;
10{
11    fprintf(stderr, "line %d of %s: Assert \"%s\" failed\n",
12    lineNumber, fileName, testExpr);
13    fflush(stderr);
14    abort();
15}
16
17void
18Rp_Panic (
19    const char *format,
20    ...)
21{
22    va_list argList;
23
24    va_start(argList, format);
25    vfprintf(stderr, format, argList);
26    fprintf(stderr, "\n");
27    fflush(stderr);
28    abort();
29}
Note: See TracBrowser for help on using the repository browser.