1
/* Copyright (C) 2004 Garrett A. Kajmowicz
3
This file is part of the uClibc++ Library.
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#include <func_exception>
27
#ifdef __UCLIBCXX_EXCEPTION_SUPPORT__
29
_UCXXEXPORT void __throw_bad_alloc(){
33
_UCXXEXPORT void __throw_out_of_range( const char * message){
37
throw out_of_range(message);
40
_UCXXEXPORT void __throw_overflow_error( const char * message){
42
throw overflow_error();
44
throw overflow_error(message);
47
_UCXXEXPORT void __throw_length_error(const char * message){
51
throw length_error(message);
54
_UCXXEXPORT void __throw_invalid_argument(const char * message){
56
throw invalid_argument();
58
throw invalid_argument(message);
63
_UCXXEXPORT void __throw_bad_alloc(){
67
_UCXXEXPORT void __throw_out_of_range( const char * ){
71
_UCXXEXPORT void __throw_overflow_error( const char * ){
75
_UCXXEXPORT void __throw_length_error(const char * ){
79
_UCXXEXPORT void __throw_invalid_argument(const char *){