From d5d79d4b5b49d4ec5a7e79f4ad476d1a9fe0532e Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Mon, 2 Mar 2026 18:26:20 +1100 Subject: [PATCH] Fix groundRunProgram --- src/interface.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index a60c0ca..460576e 100644 --- a/src/interface.c +++ b/src/interface.c @@ -106,7 +106,14 @@ GroundValue groundCreateValue(GroundValueType type, ...) { } GroundValue groundRunProgram(GroundProgram* program) { - return interpretGroundProgram(program, NULL); + GroundVariable* variables = NULL; + GroundLabel* labels = NULL; + GroundScope scope = { + .variables = &variables, + .labels = &labels, + .isMainScope = true + }; + return interpretGroundProgram(program, &scope); } void groundPrintProgram(GroundProgram* program) {