summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/crt/base_exception.hxx8
-rw-r--r--dev/crt/exit.hxx18
2 files changed, 20 insertions, 6 deletions
diff --git a/dev/crt/base_exception.hxx b/dev/crt/base_exception.hxx
index 9d3fd208..e73ac11b 100644
--- a/dev/crt/base_exception.hxx
+++ b/dev/crt/base_exception.hxx
@@ -7,18 +7,14 @@
#pragma once
#include <crt/defines.hxx>
-
-/// @brief CRT exit, with exit code (!!! exits all threads. !!!)
-/// @param code
-/// @return
-extern "C" int __exit(int code);
+#include <crt/exit.hxx>
/// @brief Standard C++ namespace
namespace std
{
inline void __throw_general(void)
{
- __exit(33);
+ exit(33);
}
inline void __throw_domain_error(const char* error)
diff --git a/dev/crt/exit.hxx b/dev/crt/exit.hxx
new file mode 100644
index 00000000..a699cacd
--- /dev/null
+++ b/dev/crt/exit.hxx
@@ -0,0 +1,18 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#pragma once
+
+extern "C" int exit(int code);
+
+/// @brief Standard C++ namespace
+namespace std
+{
+ inline int exit(int code)
+ {
+ exit(code);
+ }
+} // namespace std \ No newline at end of file