added garbage collector draft

This commit is contained in:
Francesco Cozzuto
2021-12-06 00:12:02 +01:00
parent 60b871be55
commit dbcf50c71b
21 changed files with 389 additions and 48 deletions
+2
View File
@@ -237,6 +237,8 @@ int main(int argc, char **argv)
Object *result = run(runtime, (Error*) &error, exe, 0, NULL, NULL, 0);
// NOTE: The `builtins` pointer is invalidated now.
if(result == NULL)
{
fprintf(stderr, "RUNTIME ERROR: %s.\n", error.base.message);