diff options
Diffstat (limited to 'src/stdexcept.cc')
-rw-r--r-- | src/stdexcept.cc | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/stdexcept.cc b/src/stdexcept.cc new file mode 100644 index 0000000..3d4e086 --- /dev/null +++ b/src/stdexcept.cc @@ -0,0 +1,80 @@ + +#include "stdexcept.h" + +namespace std { + + +exception::exception() throw() { +} + +exception::exception(const exception&) throw() { +} + +exception& exception::operator=(const exception&) throw() { + return *this; +} + +exception::~exception() { +} + +const char* exception::what() const throw() { + return 0; +} + + +bad_alloc::bad_alloc() throw() { +} + +bad_alloc::bad_alloc(const bad_alloc&) throw() { +} + +bad_alloc& bad_alloc::operator=(const bad_alloc&) throw() { + return *this; +} + +bad_alloc::~bad_alloc() { +} + +const char* bad_alloc::what() const throw() { + return "cxxrt::bad_alloc"; +} + + + +bad_cast::bad_cast() throw() { +} + +bad_cast::bad_cast(const bad_cast&) throw() { +} + +bad_cast& bad_cast::operator=(const bad_cast&) throw() { + return *this; +} + +bad_cast::~bad_cast() { +} + +const char* bad_cast::what() const throw() { + return "std::bad_cast"; +} + + +bad_typeid::bad_typeid() throw() { +} + +bad_typeid::bad_typeid(const bad_typeid &__rhs) throw() { +} + +bad_typeid::~bad_typeid() { +} + +bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) throw() { + return *this; +} + +const char* bad_typeid::what() const throw() { + return "std::bad_typeid"; +} + +} + |