add missing tools/pngdump to the repo
[gbajam22] / src / debug.h
index 921fd12..4afad76 100644 (file)
@@ -12,7 +12,7 @@ volatile int vblperf_count;
 
 void vblperf_setcolor(int palidx);
 
-#ifdef VBLBAR
+#if defined(BUILD_GBA) && defined(VBLBAR)
 #define vblperf_begin()        \
        do { \
                *vblperf_palptr = 0; \
@@ -28,6 +28,9 @@ void vblperf_setcolor(int palidx);
 #define vblperf_end()
 #endif
 
+extern int glyphcolor, glyphbg;
+extern void *glyphfb;
+
 void panic(void *pc, const char *fmt, ...) __attribute__((noreturn));
 
 void dbg_drawglyph(int x, int y, int c);