Last change
on this file since 5679 was
5679,
checked in by ldelgass, 9 years ago
|
Full merge 1.3 branch to uq branch to sync. Fixed partial subdirectory merge
by removing mergeinfo from lang/python/Rappture directory.
|
-
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 | |
---|
5 | void |
---|
6 | Rp_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 | |
---|
17 | void |
---|
18 | Rp_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.