summaryrefslogtreecommitdiff
path: root/gnu/dist/libstdc++/stdexcepti.cc
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>1998-03-29 08:31:49 +0000
committermrg <mrg@NetBSD.org>1998-03-29 08:31:49 +0000
commit1d9ec375c03e61d8a3d986cfa9e47e8060cf509a (patch)
treed4e3449c96a7263e1e9e519c8f19a3d1cb3ea411 /gnu/dist/libstdc++/stdexcepti.cc
parentd3c5e32f1d27a9891610753a12932ae435e29ce6 (diff)
initial import of the egcs 1.0.2 standard c++ library
Diffstat (limited to 'gnu/dist/libstdc++/stdexcepti.cc')
-rw-r--r--gnu/dist/libstdc++/stdexcepti.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/dist/libstdc++/stdexcepti.cc b/gnu/dist/libstdc++/stdexcepti.cc
new file mode 100644
index 00000000000..3b03acd63f4
--- /dev/null
+++ b/gnu/dist/libstdc++/stdexcepti.cc
@@ -0,0 +1,21 @@
+// Implementation file for Exception Support for -*- C++ -*-
+// This file is part of the GNU ANSI C++ Library.
+
+#ifdef __GNUG__
+#pragma implementation "stdexcept"
+#endif
+
+#include <stdexcept>
+
+// Entry points for string.
+
+void
+__out_of_range (const char *s)
+{
+ throw out_of_range (s);
+}
+
+void __length_error (const char *s)
+{
+ throw length_error (s);
+}