// lib/dll_stl/eh.h #include #ifndef __hpux using namespace std; #endif #ifdef __SUNPRO_CC #define exception std::exception #endif #include class G__exception : public exception { string msg; public: G__exception() { } G__exception(const G__exception& x) { msg=x.msg; } G__exception(const char* x) : msg(x) { } G__exception(const string& x) : msg(x) { } G__exception& operator=(const G__exception& x) {msg=x.msg;return(*this);} virtual const char* what() const throw() { return(msg.c_str()); } virtual ~G__exception() throw() { } }; #ifdef __MAKECINT__ #ifndef G__EXCEPTION_DLL #define G__EXCEPTION_DLL #endif #pragma link C++ global G__EXCEPTION_DLL; #pragma link C++ class exception; #pragma link C++ class bad_exception; #pragma link C++ class G__exception; #pragma link C++ function set_unexpected; #pragma link C++ function unexpected; #pragma link C++ function set_terminate; #pragma link C++ function terminate; #pragma link C++ function uncaught_exception; #pragma link C++ typedef unexpected_handler; #pragma link C++ typedef terminate_handler; #endif