X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdebug.h;fp=src%2Fdebug.h;h=921fd12a271f9f90cd98bb6c38e992b97fd642c5;hb=6a650e3e08da161fcebeb9181da60e110893fa8b;hp=45cc06723d6daeeea6d6aad6e68ac34cc6d9dcc3;hpb=bbe2ec049a812155c75da5ecc303bf3793c9cca8;p=gbajam21 diff --git a/src/debug.h b/src/debug.h index 45cc067..921fd12 100644 --- a/src/debug.h +++ b/src/debug.h @@ -12,6 +12,7 @@ volatile int vblperf_count; void vblperf_setcolor(int palidx); +#ifdef VBLBAR #define vblperf_begin() \ do { \ *vblperf_palptr = 0; \ @@ -22,7 +23,10 @@ void vblperf_setcolor(int palidx); do { \ *vblperf_palptr = vblperf_color[vblperf_count]; \ } while(0) - +#else +#define vblperf_begin() +#define vblperf_end() +#endif void panic(void *pc, const char *fmt, ...) __attribute__((noreturn));