Whole document tree eh_aux_runtime.ccGo to the documentation of this file.00001 // -*- C++ -*- Common throw conditions. 00002 // Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 00003 // Free Software Foundation 00004 // 00005 // This file is part of GNU CC. 00006 // 00007 // GNU CC is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2, or (at your option) 00010 // any later version. 00011 // 00012 // GNU CC is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GNU CC; see the file COPYING. If not, write to 00019 // the Free Software Foundation, 59 Temple Place - Suite 330, 00020 // Boston, MA 02111-1307, USA. 00021 00022 // As a special exception, you may use this file as part of a free software 00023 // library without restriction. Specifically, if other files instantiate 00024 // templates or use macros or inline functions from this file, or you compile 00025 // this file and link it with other files to produce an executable, this 00026 // file does not by itself cause the resulting executable to be covered by 00027 // the GNU General Public License. This exception does not however 00028 // invalidate any other reasons why the executable file might be covered by 00029 // the GNU General Public License. 00030 00031 #include "typeinfo" 00032 #include "exception" 00033 #include <cstddef> 00034 #include "unwind-cxx.h" 00035 #include "exception_defines.h" 00036 00037 00038 extern "C" void 00039 __cxa_bad_cast () 00040 { 00041 #ifdef __EXCEPTIONS 00042 throw std::bad_cast(); 00043 #else 00044 std::abort(); 00045 #endif 00046 } 00047 00048 extern "C" void 00049 __cxa_bad_typeid () 00050 { 00051 #ifdef __EXCEPTIONS 00052 throw std::bad_typeid(); 00053 #else 00054 std::abort(); 00055 #endif 00056 } Generated on Mon Apr 8 03:11:24 2002 for libstdc++-v3 Source by ![]() |