projects
/
gbajam21
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tunnel rotation with lower-res scaled-up tunnel
[gbajam21]
/
src
/
debug.h
diff --git
a/src/debug.h
b/src/debug.h
index
844b465
..
921fd12
100644
(file)
--- 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;
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; \
#define vblperf_begin() \
do { \
*vblperf_palptr = 0; \
@@
-23,9
+23,12
@@
void vblperf_stop(void);
do { \
*vblperf_palptr = vblperf_color[vblperf_count]; \
} while(0)
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, ...);
void dbg_drawglyph(int x, int y, int c);
int dbg_drawstr(int x, int y, const char *fmt, ...);