repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup on the shot validation path
[Project_algorithmic_C.git]
/
lib
/
debug.c
diff --git
a/lib/debug.c
b/lib/debug.c
index e00ce9f23ca859a2c36ecfd94925066f42ba7bb9..e6631c6462592998255b3f784d5959f20eb4ff1f 100644
(file)
--- a/
lib/debug.c
+++ b/
lib/debug.c
@@
-21,6
+21,7
@@
#include "othello.h"
#include "debug.h"
#include "othello.h"
#include "debug.h"
+#if DEBUG
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
for (int i = 1; i <= board_size; i++) {
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]) {
for (int i = 1; i <= board_size; i++) {
@@
-31,11
+32,6
@@
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][b
}
}
}
}
}
}
-
-#if BUILD_TYPE == debug
-void dbg_mvprintv(int y, int x, char* debug_text) {
- mvprintw(y, x, debug_text);
-}
#else
#else
-void d
bg_mvprintv(int y, int x, char* debug_text
) { }
-#endif
+void d
isplay_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]
) { }
+#endif
/* DEBUG */