This commit is contained in:
2022-09-03 06:58:50 +10:00
parent 4625efecfd
commit 6c151e21b0
4 changed files with 62 additions and 25 deletions

View File

@@ -25,6 +25,10 @@ int pushLiteralArray(LiteralArray* array, Literal literal) {
}
Literal popLiteralArray(LiteralArray* array) {
if (array->count <= 0) {
return TO_NULL_LITERAL;
}
//get the return
Literal ret = array->literals[array->count-1];