Test Buttons
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user