compiler: allow functions return without main function

pull/1787/head
Henrixounez 2019-08-29 19:43:23 +02:00 committed by Alexander Medvednikov
parent cd625b04eb
commit 4b9cc1246e
1 changed files with 1 additions and 0 deletions

View File

@ -494,6 +494,7 @@ _thread_so = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&reload_so, 0, 0, 0);
}
p.check_unused_variables()
p.cur_fn = EmptyFn
p.returns = false
if !is_generic {
p.genln('}')
}