home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / vopl / glvopl.lha / glvopl / src / err.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-07  |  254 b   |  23 lines

  1. #include "vopl.h"
  2. #ifndef SGI_GL
  3. #include "vogl.h"
  4. #endif
  5.  
  6.  
  7. /*
  8.  * vopl_error
  9.  *
  10.  *    Prints an error message.
  11.  */
  12. void
  13. vopl_error(str)
  14.     char    *str;
  15. {
  16. #ifndef SGI_GL
  17.     if (vdevice.initialised)
  18.         gexit();
  19. #endif
  20.     fprintf(stderr,"vopl: %s\n", str);
  21.     exit(1);
  22. }
  23.