Files
ground-rewrite/src/Program/execute.c

15 lines
383 B
C

#include "../../include/ground.h"
void _GroundProgramExecute(GroundProgram* program, GroundState* state) {
// Preprocess program, then run
GroundProgram pp = Ground.Program.preprocess(program, state);
if (Ground.Flags.error) {
return;
}
Ground.Internal.run(&pp, state);
if (Ground.Flags.error) {
return;
}
Ground.Free.Program(&pp);
}