mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 17:27:33 +02:00
Allow (exit) to take no args
This commit is contained in:
parent
8c8b7bff74
commit
41c458c23f
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue