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

Last change on this file since 4503 was 1386, checked in by dkearney, 15 years ago

adding a few object prototypes we can play with for future developement. the plot object is probably the most interesting. examples are located in examples/objects dirs

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.