Add groundFindField to groundvm.h

This commit is contained in:
2026-03-14 14:10:51 +11:00
parent ae17165254
commit 6fecf42e0e
2 changed files with 8 additions and 0 deletions

View File

@@ -208,6 +208,8 @@ GroundProgram groundParseFile(const char* code);
GroundStruct groundCreateStruct();
void groundAddFieldToStruct(GroundStruct* gstruct, char* name, GroundValue field);
GroundObjectField* groundFindField(GroundObject head, const char *id);
// Run function returned by Ground code
// Use argc to set count of args, accepts that amount of GroundValue's after
GroundValue groundRunFunction(GroundFunction* function, size_t argc, ...);