summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b5e9ccd)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
# Putting header files in the source directory is not the purpose of this INCLUDES_PATH variable
INCLUDES_PATH := $(INCLUDES_PATH) -I$(LIBRARY_PATH)
# Putting header files in the source directory is not the purpose of this INCLUDES_PATH variable
INCLUDES_PATH := $(INCLUDES_PATH) -I$(LIBRARY_PATH)
-CFLAGS := $(CFLAGS) $(CFLAGS_LTO) $(WARN_FLAGS) $(STD_FLAG) $(OPTI_FLAG) $(DEBUG_FLAG) $(INCLUDES_PATH)
+CFLAGS := -DBUILD_TYPE=$(BUILD_TYPE) $(CFLAGS) $(CFLAGS_LTO) $(WARN_FLAGS) $(STD_FLAG) $(OPTI_FLAG) $(DEBUG_FLAG) $(INCLUDES_PATH)
LIBCFLAGS := -fPIC $(CFLAGS)
LDFLAGS := $(LDFLAGS) $(LDFLAGS_LTO) $(LDFLAGS_GOLD) $(STRIP_FLAG)
LIBLDFLAGS := $(SHLIBLDFLAG) $(LDFLAGS)
LIBCFLAGS := -fPIC $(CFLAGS)
LDFLAGS := $(LDFLAGS) $(LDFLAGS_LTO) $(LDFLAGS_GOLD) $(STRIP_FLAG)
LIBLDFLAGS := $(SHLIBLDFLAG) $(LDFLAGS)
#include <string.h>
#include "othello.h"
#include <string.h>
#include "othello.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]) {
-/* 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
* =====================================================================================
*/
* =====================================================================================
*/
+#ifndef DEBUG_H
+#define DEBUG_H
+
+#include "constants.h"
+
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
void display_array(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);