forked from ground/ground
Add groundFindField to groundvm.h
This commit is contained in:
@@ -180,3 +180,9 @@ GroundValue groundRunFunction(GroundFunction* function, size_t argc, ...) {
|
||||
|
||||
return interpretGroundProgram(&function->program, &callScope);
|
||||
}
|
||||
|
||||
GroundObjectField* groundFindField(GroundObject head, const char *id) {
|
||||
GroundObjectField* s;
|
||||
HASH_FIND_STR(head.fields, id, s);
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user