X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdebug.h;h=921fd12a271f9f90cd98bb6c38e992b97fd642c5;hb=b88c03f1cf5b5f66bec905e5b43e797abf8c18e0;hp=844b465771b87c027a82ddb5afcd736b1f29a24b;hpb=fb94d0fa89684121874bb3a4b0cb51172cab4a90;p=gbajam21 diff --git a/src/debug.h b/src/debug.h index 844b465..921fd12 100644 --- a/src/debug.h +++ b/src/debug.h @@ -10,9 +10,9 @@ extern uint16_t vblperf_color[]; uint16_t *vblperf_palptr; volatile int vblperf_count; -void vblperf_start(int palidx); -void vblperf_stop(void); +void vblperf_setcolor(int palidx); +#ifdef VBLBAR #define vblperf_begin() \ do { \ *vblperf_palptr = 0; \ @@ -23,9 +23,12 @@ void vblperf_stop(void); do { \ *vblperf_palptr = vblperf_color[vblperf_count]; \ } while(0) +#else +#define vblperf_begin() +#define vblperf_end() +#endif - -void panic(uint32_t pc, const char *fmt, ...); +void panic(void *pc, const char *fmt, ...) __attribute__((noreturn)); void dbg_drawglyph(int x, int y, int c); int dbg_drawstr(int x, int y, const char *fmt, ...);