From 7791c343c4240ff4c12b755773b58cd9ab7e99d6 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sun, 10 Sep 2017 13:26:14 +0100 Subject: Allow for multiple library collections; Store AstFile as pointer --- src/check_decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index ca1118a30..331225d86 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -434,7 +434,7 @@ void check_proc_decl(Checker *c, Entity *e, DeclInfo *d) { - if (d->scope->is_file && e->token.string == "main") { + if (d->scope->file != nullptr && e->token.string == "main") { if (pt->param_count != 0 || pt->result_count != 0) { gbString str = type_to_string(proc_type); -- cgit v1.2.3