]> git.mxchange.org Git - flightgear.git/blob - Lib/Math/mat3err.h
Merge FG_Lib as subdirectory
[flightgear.git] / Lib / Math / mat3err.h
1 #ifndef _MAT3ERR_H
2 #define _MAT3ERR_H
3
4
5 #ifdef __cplusplus                                                          
6 extern "C" {                            
7 #endif                                   
8
9
10 #include "sph_errtypes.h"
11
12 #ifdef THINK_C
13 /* We hide this from gnu's compiler, which doesn't understand it. */
14 void SPH__error (int errtype, ...);
15 #endif
16
17
18 #define ERR_ERROR(A,B,C)   \
19    if (1) {char cstr[256]; sprintf C; SPH__error(ERR_MAT3_PACKAGE, cstr); } else
20
21
22 #define ERR_S  cstr,"%s\n"
23 #define ERR_SI cstr,"%s: %d\n"
24 #define ERR_SS cstr,"%s: %s\n"
25
26 #define ERR_SEVERE 0
27 #define ERR_FATAL  0
28
29 #define ERR_ALLOC1 0
30
31 typedef int ERRid;
32
33 #define ERRregister_package(S)    100
34
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40
41 #endif /* _MAT3ERR_H */