home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_dos.lha / dos / sphsrc.v08 / mat3err.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-26  |  483 b   |  27 lines

  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.  
  27.