]> git.mxchange.org Git - flightgear.git/blob - Math/mat3err.h
Moved fg_random routines from Util/ to Math/
[flightgear.git] / Math / mat3err.h
1 #include "sph_errtypes.h"
2
3 #ifdef THINK_C
4 /* We hide this from gnu's compiler, which doesn't understand it. */
5 void SPH__error (int errtype, ...);
6 #endif
7
8
9 #define ERR_ERROR(A,B,C)   \
10    if (1) {char cstr[256]; sprintf C; SPH__error(ERR_MAT3_PACKAGE, cstr); } else
11
12
13 #define ERR_S  cstr,"%s\n"
14 #define ERR_SI cstr,"%s: %d\n"
15 #define ERR_SS cstr,"%s: %s\n"
16
17 #define ERR_SEVERE 0
18 #define ERR_FATAL  0
19
20 #define ERR_ALLOC1 0
21
22 typedef int ERRid;
23
24 #define ERRregister_package(S)    100
25
26