Misc stuff, probably crashes

This commit is contained in:
2026-07-02 11:35:56 +10:00
parent 9bb083a6f8
commit c78426ef88
16 changed files with 474 additions and 134 deletions

View File

@@ -1,11 +1,14 @@
#include "../../include/ground.h"
void _GroundProgramExecute(GroundProgram* program, GroundState* state) {
// TODO:
// - Preprocess functions
// - Preprocess structs
// - Add them to state
Ground.Internal.run(program, 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);
}