Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

glut_util.c

Go to the documentation of this file.
00001 
00002 /* Copyright (c) Mark J. Kilgard, 1994. */
00003 
00004 /* This program is freely distributable without licensing fees
00005    and is provided without guarantee or warrantee expressed or
00006    implied. This program is -not- in the public domain. */
00007 
00008 #include <stdlib.h>
00009 #include <stdarg.h>
00010 #include <stdio.h>
00011 
00012 #include <GL/glut.h>
00013 #include "glutint.h"
00014 
00015 void
00016 __glutWarning(char *format,...)
00017 {
00018   va_list args;
00019 
00020   va_start(args, format);
00021   fprintf(stderr, "GLUT: Warning in %s: ",
00022     __glutProgramName ? __glutProgramName : "(unamed)");
00023   vfprintf(stderr, format, args);
00024   va_end(args);
00025   putc('\n', stderr);
00026 }
00027 
00028 void
00029 __glutFatalError(char *format,...)
00030 {
00031   va_list args;
00032 
00033   va_start(args, format);
00034   fprintf(stderr, "GLUT: Fatal Error in %s: ",
00035     __glutProgramName ? __glutProgramName : "(unamed)");
00036   vfprintf(stderr, format, args);
00037   va_end(args);
00038   putc('\n', stderr);
00039   exit(1);
00040 }
00041 
00042 void
00043 __glutFatalUsage(char *format,...)
00044 {
00045   va_list args;
00046 
00047   va_start(args, format);
00048   fprintf(stderr, "GLUT: Fatal API Usage in %s: ",
00049     __glutProgramName ? __glutProgramName : "(unamed)");
00050   vfprintf(stderr, format, args);
00051   va_end(args);
00052   putc('\n', stderr);
00053   abort();
00054 }
 

Powered by Plone

This site conforms to the following standards: