1 //========================================================================
5 // Copyright 1996-2002 Glyph & Cog, LLC
7 //========================================================================
10 #pragma implementation
17 #include "GlobalParams.h"
20 void CDECL error(int pos, char *msg, ...) {
23 // NB: this can be called before the globalParams object is created
24 if (globalParams && globalParams->getErrQuiet()) {
28 fprintf(stderr, "Error (%d): ", pos);
30 fprintf(stderr, "Error: ");
33 vfprintf(stderr, msg, args);
35 fprintf(stderr, "\n");