File outputting while embedding GroundVM

This commit is contained in:
2025-12-21 11:41:14 +11:00
parent 13b07e0042
commit 579720015a
4 changed files with 19 additions and 3 deletions

View File

@@ -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");
}
}