forked from ground/ground-old
Fix groundRunProgram
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user