1 /*
2 * UAE - The Un*x Amiga Emulator
3 *
4 * Standard write_log that writes to the console
5 *
6 * Copyright 2001 Bernd Schmidt
7 */
8 #include "sysconfig.h"
9 #include "sysdeps.h"
10
11 #ifdef FSUAE
write_log(const char * fmt,...)12 void write_log (const char *fmt, ...)
13 #else
14 void write_log_standard (const char *fmt, ...)
15 #endif
16 {
17 va_list ap;
18 va_start (ap, fmt);
19 #ifdef HAVE_VFPRINTF
20 vfprintf (stderr, fmt, ap);
21 #else
22 /* Technique stolen from GCC. */
23 {
24 int x1, x2, x3, x4, x5, x6, x7, x8;
25 x1 = va_arg (ap, int);
26 x2 = va_arg (ap, int);
27 x3 = va_arg (ap, int);
28 x4 = va_arg (ap, int);
29 x5 = va_arg (ap, int);
30 x6 = va_arg (ap, int);
31 x7 = va_arg (ap, int);
32 x8 = va_arg (ap, int);
33 fprintf (stderr, fmt, x1, x2, x3, x4, x5, x6, x7, x8);
34 }
35 #endif
36 va_end (ap);
37 }
38