File outputting while embedding GroundVM
This commit is contained in:
@@ -79,3 +79,10 @@ GroundValue groundCreateValue(GroundValueType type, ...) {
|
||||
GroundValue groundRunProgram(GroundProgram* program) {
|
||||
return interpretGroundProgram(program, NULL);
|
||||
}
|
||||
|
||||
void groundPrintProgram(GroundProgram* program) {
|
||||
for (size_t i = 0; i < program->size; i++) {
|
||||
printGroundInstruction(&program->instructions[i]);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user