xref: /haiku/src/libs/stdc++/legacy/stdexcepti.cc (revision 21258e2674226d6aa732321b6f8494841895af5f)
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