11
#include "G3d_intern.h"
13
/*---------------------------------------------------------------------------*/
19
* This function ignores the error.
25
void G3d_skipError(const char *msg)
33
* This function prints the
34
* error message <em>msg</em> to <em>stderr</em> and returns.
40
void G3d_printError(const char *msg)
42
fprintf(stderr, "ERROR: ");
44
fprintf(stderr, "\n");
51
* This function prints the
52
* error message <em>msg</em>, and terminates the program with an error status.
58
void G3d_fatalError(const char *msg, ...)
60
char buffer[2000]; /* No novels to the error logs, OK? */
64
vsprintf(buffer, msg, ap);
67
G_fatal_error("%s", buffer);
70
void G3d_fatalError_noargs(const char *msg)
72
G_fatal_error("%s", msg);
75
void G3d_error(const char *msg, ...)
77
char buffer[2000]; /* No novels to the error logs, OK? */
81
vsprintf(buffer, msg, ap);
84
(*g3d_error_fun) (buffer);