* moved libunix to lib/libc or lib/curses
[lightOS.git] / libsupc++ / typeinfo.cpp
blob8d1b616de7b1062d089f326960a5a1229916e5a7
1 /*
2 lightOS supc++
3 Copyright (C) 2006-2008 Jörg Pfähler
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program 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
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "c++abi.hpp"
20 #include "c++typeinfo.hpp"
21 using namespace std;
22 using namespace __cxxabiv1;
24 type_info::type_info(const type_info &rhs)
26 _name = rhs._name;
29 type_info::~type_info(){}
31 __fundamental_type_info::__fundamental_type_info(const __fundamental_type_info &rhs)
32 : type_info(rhs){}
34 __array_type_info::__array_type_info(const __array_type_info &rhs)
35 : type_info(rhs){}
37 __function_type_info::__function_type_info(const __function_type_info &rhs)
38 : type_info(rhs){}
40 __enum_type_info::__enum_type_info(const __enum_type_info &rhs)
41 : type_info(rhs){}
43 __class_type_info::__class_type_info(const __class_type_info &rhs)
44 : type_info(rhs){}
46 __si_class_type_info::__si_class_type_info(const __si_class_type_info &rhs)
47 : __class_type_info(rhs){}
49 __vmi_class_type_info::__vmi_class_type_info(const __vmi_class_type_info &rhs)
50 : __class_type_info(rhs){}
52 __pointer_type_info::__pointer_type_info(const __pointer_type_info &rhs)
53 : __pbase_type_info(rhs){}
55 #include <iostream>
56 void *__dynamic_cast ( const void *sub,
57 const __class_type_info *src,
58 const __class_type_info *dst,
59 ptrdiff_t src2dst_offset)
61 cerr << "supc++: dynamic_cast used" << endl;
62 cerr << " sub = 0x" << hex << reinterpret_cast<size_t>(sub) << endl;
63 cerr << " src = 0x" << hex << reinterpret_cast<size_t>(src) << endl;
64 cerr << " dst = 0x" << hex << reinterpret_cast<size_t>(dst) << endl;
65 cerr << " src2dst_offset = 0x" << hex << static_cast<size_t>(src2dst_offset) << endl;
66 return 0;