2026-06-13 19:45:36 +10:00
|
|
|
#include "../../include/ground.h"
|
|
|
|
|
|
|
|
|
|
void _GroundProgramExecute(GroundProgram* program, GroundState* state) {
|
2026-07-02 11:35:56 +10:00
|
|
|
// 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);
|
2026-06-13 19:45:36 +10:00
|
|
|
}
|