From a52c55eb9af3e29a912d41a48071e830b0971fd5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 22 Jan 2022 22:01:54 -0800 Subject: Chapter 24.2 (Does Not Compile) --- clox/src/object.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clox/src/object.c') diff --git a/clox/src/object.c b/clox/src/object.c index 7170352..2df533e 100644 --- a/clox/src/object.c +++ b/clox/src/object.c @@ -69,6 +69,10 @@ ObjString *copyString(const char *chars, int length) { } static void printFunction(ObjFunction *function) { + if (function->name == NULL) { + printf("