cool stuff
This commit is contained in:
@@ -4,6 +4,7 @@ void _GroundProgramAppend(GroundProgram* program, GroundInstruction instruction)
|
||||
if (program->len + 1 >= program->capacity) {
|
||||
GroundInstruction* tmp = realloc(program->at, sizeof(GroundInstruction) * program->capacity * 2);
|
||||
if (tmp == NULL) {
|
||||
Ground.Log.Error("malloc failed in Ground.Program.append()");
|
||||
Ground.Flags.error = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
#include "../../include/ground.h"
|
||||
|
||||
void _GroundProgramExecute(GroundProgram* program, GroundState* state) {
|
||||
// stub
|
||||
|
||||
// TODO:
|
||||
// - Preprocess functions
|
||||
// - Preprocess structs
|
||||
// - Add them to state
|
||||
|
||||
Ground.Internal.run(program, state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user