mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
more inlining of varargs function avoidance
This commit is contained in:
parent
5fb3b4e547
commit
5bd0280d1b
1 changed files with 21 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue