summaryrefslogtreecommitdiff
path: root/src/terminate.cc
diff options
context:
space:
mode:
authoranonymous <local@localhost>2010-06-27 17:13:07 +0000
committeranonymous <local@localhost>2010-06-27 17:13:07 +0000
commit7ca18cb7c08bf92db5946a66e312678c480eb819 (patch)
tree22dfcc5cf05ecad955cd15d9feb952f204a4b32b /src/terminate.cc
downloadlibcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.gz
libcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.bz2
libcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.xz
Initial import.
Diffstat (limited to 'src/terminate.cc')
-rw-r--r--src/terminate.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/terminate.cc b/src/terminate.cc
new file mode 100644
index 0000000..663fe52
--- /dev/null
+++ b/src/terminate.cc
@@ -0,0 +1,14 @@
+#include <stdlib.h>
+
+namespace std
+{
+ /**
+ * Stub implementation of std::terminate. Used when the STL implementation
+ * doesn't provide one.
+ */
+ __attribute__((weak))
+ void terminate()
+ {
+ abort();
+ }
+}