cool stuff
This commit is contained in:
@@ -70,6 +70,21 @@ void _GroundFunctionAppendArg(GroundFunction* function, const char* argName);
|
||||
void _GroundStructAddField(GroundStruct* gs, const char* id, GroundValue value);
|
||||
|
||||
|
||||
GroundValue* _GroundStateFindVariable(GroundState* state, const char* id);
|
||||
size_t* _GroundStateFindLabel(GroundState* state, const char* id);
|
||||
GroundCatch* _GroundStateFindCatch(GroundState* state, const char* id);
|
||||
|
||||
|
||||
void _GroundInternalRun(GroundProgram* program, GroundState* state);
|
||||
|
||||
|
||||
void _GroundLogError(const char* message);
|
||||
void _GroundLogWarning(const char* message);
|
||||
void _GroundLogPrintErrors();
|
||||
|
||||
|
||||
|
||||
|
||||
struct _Ground Ground = {
|
||||
|
||||
.Flags = {
|
||||
@@ -157,4 +172,22 @@ struct _Ground Ground = {
|
||||
.Struct = {
|
||||
.addField = _GroundStructAddField,
|
||||
},
|
||||
|
||||
.State = {
|
||||
.findCatch = _GroundStateFindCatch,
|
||||
.findLabel = _GroundStateFindLabel,
|
||||
.findVariable = _GroundStateFindVariable,
|
||||
},
|
||||
|
||||
.Internal = {
|
||||
.run = _GroundInternalRun
|
||||
},
|
||||
|
||||
.Log = {
|
||||
.Error = _GroundLogError,
|
||||
.Warning = _GroundLogWarning,
|
||||
.printErrors = _GroundLogPrintErrors,
|
||||
.errors = NULL,
|
||||
.warnings = NULL,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user