shithub: rgbds

Download patch

ref: fd32b2252fe6652e9e4ddd3e033351e3a217c8db
parent: d15915ef1448bb8c5947f455824cb4a7946121fe
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Feb 3 14:55:46 EST 2020

Define additional variable when doing `make develop`

--- a/Makefile
+++ b/Makefile
@@ -221,7 +221,7 @@
 		-fsanitize=unreachable -fsanitize=vla-bound \
 		-fsanitize=signed-integer-overflow -fsanitize=bounds \
 		-fsanitize=object-size -fsanitize=bool -fsanitize=enum \
-		-fsanitize=alignment -fsanitize=null"
+		-fsanitize=alignment -fsanitize=null -DDEVELOP=1"
 
 # Targets for the project maintainer to easily create Windows exes.
 # This is not for Windows users!
--- a/include/helpers.h
+++ b/include/helpers.h
@@ -21,4 +21,8 @@
 	#define trap_
 #endif
 
+#ifndef DEVELOP
+	#define DEVELOP 0
+#endif
+
 #endif /* HELPERS_H */