mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 07:11:49 +00:00
XEEN: create_xeen: Implement varargs prints for error
This commit is contained in:
parent
315ee1a530
commit
9b74410993
@ -42,7 +42,14 @@
|
||||
#define VERSION_NUMBER 4
|
||||
|
||||
void NORETURN_PRE error(const char *s, ...) {
|
||||
fprintf(stderr, "%s\n", s);
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, s);
|
||||
vfprintf(stderr, s, ap);
|
||||
va_end(ap);
|
||||
|
||||
fputc('\n', stderr);
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user