From 69f6b03296f96a60dd7fc103ff89d187f1a29aec Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 10 Nov 2021 16:40:29 +0100 Subject: Change Environment to store locals in array This will help directly translate the locals to assembly. --- src/compiler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler.h') diff --git a/src/compiler.h b/src/compiler.h index d4b9e72..fe36ecf 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -405,6 +405,7 @@ compile_proc_call(Object *obj) { void compile_if(Object *obj) { + context_printf(" ;; --> compile_if\n"); char *lab_false = generate_label("BDLL"); compile_object(obj->condition); context_printf(" pop rax\n"); @@ -420,6 +421,7 @@ compile_if(Object *obj) { } else { context_printf("%s:\n", lab_false); } + context_printf(" ;; <-- compile_if\n"); } void -- cgit v1.2.1