From 3aa88a917e8c44ab088498dcfc18c48e66ceb243 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 23 Jan 2022 19:16:20 +0000 Subject: Reset to global symbol table on errors --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') diff --git a/main.c b/main.c index 13750ef..7551958 100644 --- a/main.c +++ b/main.c @@ -31,6 +31,7 @@ main(int argc, char *argv[]) restart: SETUPERROR(errorcode); if(errorcode){ + currentsymtab = globalsymtab; if(globalerror.msg) print("%S: %S\n", errorstrs[errorcode], globalerror.msg); else -- cgit v1.2.3