From 41c458c23f0db3337307c1df33bd6ae318125c5d Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 20 Mar 2015 11:14:26 -0400 Subject: [PATCH] Allow (exit) to take no args --- runtime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime.h b/runtime.h index 68be4449..71802faa 100644 --- a/runtime.h +++ b/runtime.h @@ -1220,6 +1220,8 @@ static void _Cyc_91set_91cvar_67(object cont, object args) { printf("not implemented\n"); exit(1); } /* Note we cannot use _exit (per convention) because it is reserved by C */ static void _cyc_exit(object cont, object args) { + if(nullp(args)) + __halt(nil); __halt(car(args)); } static void __75halt(object cont, object args) {