repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement some basic debug printing function.
[Project_algorithmic_C.git]
/
lib
/
debug.c
diff --git
a/lib/debug.c
b/lib/debug.c
index 653207954de9478dab789cbc2aeea90cb6efd9eb..e00ce9f23ca859a2c36ecfd94925066f42ba7bb9 100644
(file)
--- a/
lib/debug.c
+++ b/
lib/debug.c
@@
-19,7
+19,6
@@
#include <string.h>
#include "othello.h"
#include <string.h>
#include "othello.h"
-#include "constants.h"
#include "debug.h"
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
#include "debug.h"
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
@@
-33,6
+32,10
@@
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][b
}
}
}
}
-/* void dbg_mvprintv(int y, int x, ) {
-
-} */
+#if BUILD_TYPE == debug
+void dbg_mvprintv(int y, int x, char* debug_text) {
+ mvprintw(y, x, debug_text);
+}
+#else
+void dbg_mvprintv(int y, int x, char* debug_text) { }
+#endif