[CPPRT] Implement __std_terminate wrapper for Clang-CL
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 3 Feb 2019 17:25:04 +0000 (18:25 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 12 Feb 2019 18:31:33 +0000 (19:31 +0100)
sdk/lib/cpprt/CMakeLists.txt
sdk/lib/cpprt/terminate.cpp [new file with mode: 0644]

index 4e090f2..de120e4 100644 (file)
@@ -8,6 +8,7 @@ include_directories(
 list(APPEND SOURCE
     ehvec.cpp
     new_nothrow.cpp
+    terminate.cpp
     typeinfo.cpp)
 
 if(ARCH STREQUAL "i386")
diff --git a/sdk/lib/cpprt/terminate.cpp b/sdk/lib/cpprt/terminate.cpp
new file mode 100644 (file)
index 0000000..14fc919
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * PROJECT:     ReactOS C++ Runtime Library
+ * LICENSE:     CC0-1.0 (https://spdx.org/licenses/CC0-1.0)
+ * PURPOSE:     __std_terminate implementation
+ * COPYRIGHT:   Timo Kreuzer (timo.kreuzer@reactos.org)
+ */
+
+#include <exception>
+
+extern "C"
+void __std_terminate()
+{
+    terminate();
+}