mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
No segfaults, still failing tests
This commit is contained in:
@@ -121,6 +121,10 @@ Scope* pushScope(Scope* ancestor) {
|
||||
}
|
||||
|
||||
Scope* popScope(Scope* scope) {
|
||||
if (scope == NULL) { //CAN pop a null
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Scope* ret = scope->ancestor;
|
||||
|
||||
freeAncestorChain(scope);
|
||||
|
||||
Reference in New Issue
Block a user