more inlining of varargs function avoidance

This commit is contained in:
Bill Currie 2003-05-07 21:20:00 +00:00
parent 5fb3b4e547
commit 5bd0280d1b

View file

@ -48,27 +48,6 @@ qboolean com_eof;
qboolean archive;
char archivedir[1024];
/*
=================
Error
For abnormal program terminations
=================
*/
void
Error (const char *error, ...)
{
va_list argptr;
printf ("************ ERROR ************\n");
va_start (argptr, error);
vprintf (error, argptr);
va_end (argptr);
printf ("\n");
exit (1);
}
/*
qdir will hold the path up to the quake directory, including the slash
@ -639,3 +618,24 @@ CopyFile (const char *from, const char *to)
SaveFile (to, buffer, length);
free (buffer);
}
/*
=================
Error
For abnormal program terminations
=================
*/
void
Error (const char *error, ...)
{
va_list argptr;
printf ("************ ERROR ************\n");
va_start (argptr, error);
vprintf (error, argptr);
va_end (argptr);
printf ("\n");
exit (1);
}