From 65c9ec835d1eee963b636a403b46ad3875466192 Mon Sep 17 00:00:00 2001 From: Elijah Cohen Date: Wed, 16 Oct 2024 01:27:59 -0500 Subject: [PATCH] typechecking now enabled in config h, testing clearer --- src/Makefile | 2 +- src/config.h | 2 +- src/test.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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 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); -- 2.39.2