aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/std.py b/std.py
index 6f591fc..1779b49 100644
--- a/std.py
+++ b/std.py
@@ -10,9 +10,10 @@ DEBUG = True
def _get_debug():
return DEBUG
-def std_exit(status=0):
- sys.exit(status)
- return NebLiteral(NebType.BOOL, True)
+def std_exit(status=None):
+ out = 0 if status is None else status.value
+ sys.exit(out)
+ return NebLiteral(NebType.BOOL, True) # this should never be reached
def std_print(arg):
print(arg.value)