1
0
forked from ground/ground-old

Fix groundRunProgram

This commit is contained in:
2026-03-02 18:26:20 +11:00
parent ce75981c58
commit d5d79d4b5b

View File

@@ -106,7 +106,14 @@ GroundValue groundCreateValue(GroundValueType type, ...) {
} }
GroundValue groundRunProgram(GroundProgram* program) { 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) { void groundPrintProgram(GroundProgram* program) {