diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-09-10 13:26:14 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-09-10 13:26:14 +0100 |
| commit | 7791c343c4240ff4c12b755773b58cd9ab7e99d6 (patch) | |
| tree | 48f787405d766776b9985a96e6dce1ebba948225 /src/check_decl.cpp | |
| parent | 3bd762591ab36dcf45453241aa55160ad96650a0 (diff) | |
Allow for multiple library collections; Store AstFile as pointer
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |