xref: /haiku/src/libs/stdc++/legacy/stdexcepti.cc (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
1 // Implementation file for Exception Support for -*- C++ -*-
2 // This file is part of the GNU ANSI C++ Library.
3 
4 #ifdef __GNUG__
5 #pragma implementation "stdexcept"
6 #endif
7 
8 #include <stdexcept>
9 
10 // Entry points for string.
11 
12 void
13 __out_of_range (const char *s)
14 {
15   throw std::out_of_range (s);
16 }
17 
18 void __length_error (const char *s)
19 {
20   throw std::length_error (s);
21 }
22