megadrive_test1

view src/misc.c @ 7:8253942b0a1a

in the middle of something
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Feb 2017 14:00:26 +0200
parents
children
line source
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "misc.h"
5 void panic(const char *fmt, ...)
6 {
7 va_list ap;
9 printf("~~~~ panic ~~~~\n");
10 va_start(ap, fmt);
11 vprintf(fmt, ap);
12 va_end(ap);
14 /*printf("registers:\n");*/
16 halt_cpu();
17 }