1
//========================================================================
5
// Copyright 1996-2002 Glyph & Cog, LLC
7
//========================================================================
11
#ifdef USE_GCC_PRAGMAS
12
#pragma implementation
18
#include "GlobalParams.h"
21
void CDECL error(int pos, const char *msg, ...) {
24
// NB: this can be called before the globalParams object is created
25
if (globalParams && globalParams->getErrQuiet()) {
29
fprintf(stderr, "Error (%d): ", pos);
31
fprintf(stderr, "Error: ");
34
vfprintf(stderr, msg, args);
36
fprintf(stderr, "\n");