forked from ground/ground
groundFindVariable function
This commit is contained in:
@@ -221,3 +221,9 @@ GroundObjectField* groundFindField(GroundObject head, const char *id) {
|
||||
HASH_FIND_STR(head.fields, id, s);
|
||||
return s;
|
||||
}
|
||||
|
||||
GroundVariable* groundFindVariable(GroundScope* gs, const char *id) {
|
||||
GroundVariable* var;
|
||||
HASH_FIND_STR(*gs->variables, id, var);
|
||||
return var;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user