1
//========================================================================
5
// Copyright 1996-2002 Glyph & Cog, LLC
7
//========================================================================
11
#ifdef USE_GCC_PRAGMAS
12
#pragma implementation
19
#include "globalparams.h"
22
void CDECL error(int pos, char *msg, ...) {
25
// NB: this can be called before the globalParams object is created
26
if (globalParams && globalParams->getErrQuiet()) {
30
fprintf(stderr, "Error (%d): ", pos);
32
fprintf(stderr, "Error: ");
35
vfprintf(stderr, msg, args);
37
fprintf(stderr, "\n");