X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Ftypeinfo.cc;fp=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Ftypeinfo.cc;h=b0a9b3e1b9020d2455e3337e380a4aaa5c16f4da;hb=515d24f4080529f45fc94c4522f2a0da3fe98148;hp=0000000000000000000000000000000000000000;hpb=3fe0703942b3e7b562fb893d3a43c2b4370f6bbc;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/typeinfo.cc b/Usermode/Libraries/libc++.so_src/typeinfo.cc new file mode 100644 index 00000000..b0a9b3e1 --- /dev/null +++ b/Usermode/Libraries/libc++.so_src/typeinfo.cc @@ -0,0 +1,50 @@ +/* + * Acess2 C++ Library + * - By John Hodge (thePowersGang) + * + * typeinfo.cc + * - typeid and dynamic_cast + */ +#include + +namespace std { + +type_info::~type_info() +{ + // nop +} + +bool type_info::operator==(const type_info& other) const +{ + return this->__type_name == other.__type_name; +} + +bool type_info::operator!=(const type_info& other) const +{ + return this->__type_name != other.__type_name; +} + +bool type_info::before(const type_info& other) const +{ + return this->__type_name < other.__type_name; +} + +const char *type_info::name() const +{ + return this->__type_name; +} + +// Private +type_info::type_info(const type_info& rhs): + __type_name(rhs.__type_name) +{ +} +type_info& type_info::operator=(const type_info& rhs) +{ + __type_name = rhs.__type_name; + return *this; +} + + +}; // namespace std +