mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Allow (exit) to return integer values to OS
This commit is contained in:
parent
74c545416c
commit
7bc59f3ded
1 changed files with 4 additions and 0 deletions
|
@ -3122,6 +3122,10 @@ void Cyc_halt(object obj)
|
|||
#if DEBUG_SHOW_DIAG
|
||||
gc_print_stats(Cyc_heap);
|
||||
#endif
|
||||
if (obj_is_int(obj)) {
|
||||
exit(obj_obj2int(obj));
|
||||
}
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue