mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Some declaration guards
This commit is contained in:
@@ -763,8 +763,10 @@ static void expressionStmt(Parser* parser, Node** nodeHandle) {
|
||||
Node* ptr = NULL;
|
||||
expression(parser, &ptr);
|
||||
|
||||
**nodeHandle = *ptr;
|
||||
FREE(Node, ptr); //BUGFIX: this thread of execution is nuts
|
||||
if (ptr != NULL) {
|
||||
**nodeHandle = *ptr;
|
||||
FREE(Node, ptr); //BUGFIX: this thread of execution is nuts
|
||||
}
|
||||
|
||||
consume(parser, TOKEN_SEMICOLON, "Expected ';' at the end of expression statement");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user