Mercurial > repos > blastem
changeset 896:74cc31040521
Get ztestrun compiling again
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 25 Nov 2015 20:31:21 -0800 |
parents | 13388ab6d78a |
children | b9564fb88a5a |
files | ztestrun.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
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];