summaryrefslogtreecommitdiffhomepage
path: root/dev/crt/exit.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/crt/exit.h')
-rw-r--r--dev/crt/exit.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev/crt/exit.h b/dev/crt/exit.h
new file mode 100644
index 00000000..69b046c4
--- /dev/null
+++ b/dev/crt/exit.h
@@ -0,0 +1,18 @@
+/* -------------------------------------------
+
+ Copyright ZKA Web Services Co.
+
+------------------------------------------- */
+
+#pragma once
+
+extern "C" int exit(int code);
+
+/// @brief Standard C++ namespace
+namespace std
+{
+ inline int exit(int code)
+ {
+ return exit(code);
+ }
+} // namespace std