From: Elijah Cohen <eli@eli173.com>
Date: Wed, 16 Oct 2024 06:27:59 +0000 (-0500)
Subject: typechecking now enabled in config h, testing clearer
X-Git-Tag: v-12.13.14~19
X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=65c9ec835d1eee963b636a403b46ad3875466192;p=klapaucius

typechecking now enabled in config h, testing clearer
---

diff --git a/src/Makefile b/src/Makefile
index 1211867..ff4cd89 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -18,7 +18,7 @@ TEST_OBJS:= $(filter-out $(BUILD)/repl.o,$(OBJS))
 
 LIBRARIES = libedit
 
-CFLAGS:= -g -Wall `pkg-config $(LIBRARIES) --cflags` -DTYPECHECK
+CFLAGS:= -g -Wall `pkg-config $(LIBRARIES) --cflags`
 LDFLAGS:= -g -Wall `pkg-config $(LIBRARIES) --libs`
 
 
diff --git a/src/config.h b/src/config.h
index cc19f22..7e78c16 100644
--- a/src/config.h
+++ b/src/config.h
@@ -5,7 +5,7 @@
 // configuration file for various compile-time things
 // i.e. uint size, so on
 
-
+#define TYPECHECK
 
 #include <stdio.h>
 
diff --git a/src/test.c b/src/test.c
index e839ce1..e17fd40 100644
--- a/src/test.c
+++ b/src/test.c
@@ -10,6 +10,7 @@
 #include "builtins.h"
 
 void run_eval_test(char* str) {
+	printf("<- %s\n", str);
 	Sexpr* env = init_dict();
 	env = load_env(env);
 	Sexpr* parsed = parse(str);