Misc stuff, probably crashes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user