main returns %void

This commit is contained in:
Andrew Kelley
2016-01-23 02:14:01 -07:00
parent 91d911007b
commit c0ea9290c4
8 changed files with 269 additions and 238 deletions

View File

@@ -29,5 +29,8 @@ fn call_main() unreachable => {
const ptr = argv[i];
args[i] = ptr[0...strlen(ptr)];
}
exit(main(args))
// TODO: replace the i32 cast with:
// main(args) %% exit(1)
// exit(0)
exit(i32(main(args)))
}