aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-exit.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-exit.3')
-rw-r--r--man/man3/tomo-exit.334
1 files changed, 34 insertions, 0 deletions
diff --git a/man/man3/tomo-exit.3 b/man/man3/tomo-exit.3
new file mode 100644
index 00000000..e285bd36
--- /dev/null
+++ b/man/man3/tomo-exit.3
@@ -0,0 +1,34 @@
+'\" t
+.\" Copyright (c) 2025 Bruce Hill
+.\" All rights reserved.
+.\"
+.TH exit 3 2025-04-19T14:30:40.359796 "Tomo man-pages"
+.SH NAME
+exit \- Exits the program with a given status and optionally prints a message.
+
+.SH LIBRARY
+Tomo Standard Library
+.SH SYNOPSIS
+.nf
+.BI "exit : func(message: Text? = !Text, status: Int32 = Int32(1) -> Void)"
+.fi
+
+.SH DESCRIPTION
+Exits the program with a given status and optionally prints a message.
+
+
+.TS
+allbox;
+lb lb lbx lb
+l l l l.
+Name Type Description Default
+message Text? If nonempty, this message will be printed (with a newline) before exiting. !Text
+status Int32 The status code that the program with exit with. Int32(1)
+.TE
+.SH RETURN
+This function never returns.
+
+.SH EXAMPLES
+.EX
+exit(status=1, "Goodbye forever!")
+.EE