diff ztestrun.c @ 896:74cc31040521

Get ztestrun compiling again
author Michael Pavone <pavone@retrodev.com>
date Wed, 25 Nov 2015 20:31:21 -0800
parents ab017fb09e77
children a27fdf43f1a7
line wrap: on
line diff
--- a/ztestrun.c	Wed Nov 25 20:18:34 2015 -0800
+++ b/ztestrun.c	Wed Nov 25 20:31:21 2015 -0800
@@ -10,6 +10,16 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
+#include <stdarg.h>
+
+void fatal_error(char *format, ...)
+{
+	va_list args;
+	va_start(args, format);
+	vfprintf(stderr, format, args);
+	va_end(args);
+	exit(1);
+}
 
 uint8_t z80_ram[0x2000];