Allow (exit) to take no args

This commit is contained in:
Justin Ethier 2015-03-20 11:14:26 -04:00
parent 8c8b7bff74
commit 41c458c23f

View file

@ -1220,6 +1220,8 @@ static void _Cyc_91set_91cvar_67(object cont, object args) {
printf("not implemented\n"); exit(1); } printf("not implemented\n"); exit(1); }
/* Note we cannot use _exit (per convention) because it is reserved by C */ /* Note we cannot use _exit (per convention) because it is reserved by C */
static void _cyc_exit(object cont, object args) { static void _cyc_exit(object cont, object args) {
if(nullp(args))
__halt(nil);
__halt(car(args)); __halt(car(args));
} }
static void __75halt(object cont, object args) { static void __75halt(object cont, object args) {