Test Buttons

This commit is contained in:
2024-11-27 13:15:59 -05:00
parent 2afa64b642
commit 8181727de0
5 changed files with 148 additions and 326 deletions

View File

@@ -35,20 +35,11 @@
#ifndef __DEBUG_H
#define __DEBUG_H
#include <ncurses.h>
#if DEBUG
#define Debug(__info, ...) do { \
mvprintw(30, 0, "Debug:" __info, ##__VA_ARGS__); \
refresh(); \
} while (0)
#define DebugLine(y, x, __info, ...) do { \
mvprintw((y), (x), "Debug: " __info, ##__VA_ARGS__); \
refresh(); \
} while (0)
#define Debug(__info, ...) printf("Debug:" __info, ##__VA_ARGS__)
#else
#define Debug(__info, ...)
#define DebugLine(y, x, __info, ...)
#endif
#endif