committer: mfx <mfx> 1050612607 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-04-17 20:50:07 +00:00
parent 390cdbba2d
commit 5c7bca5b3e
20 changed files with 80 additions and 162 deletions
+10 -20
View File
@@ -41,7 +41,7 @@
// disable dynamic allocation of an object
**************************************************************************/
#if defined(new) || defined(delete)
#if defined(new) || defined(delete) || defined(__EMX__)
// debug
# define DISABLE_NEW_DELETE private:
@@ -102,36 +102,26 @@ public:
virtual ~exception() NOTHROW { }
virtual const char* what() const NOTHROW { return "exception"; }
};
class bad_alloc : public exception
{
public:
bad_alloc() NOTHROW { }
virtual ~bad_alloc() NOTHROW { }
virtual const char* what() const NOTHROW { return "bad_alloc"; }
};
};
#elif defined(__WATCOMC__)
#define std
#include <exception>
//#include <stdexcept>
#include <new>
#include <typeinfo>
class bad_alloc { };
};
#else
#include <exception>
//#include <stdexcept>
#include <new>
#include <typeinfo>
#endif
#if defined(__EMX__)
#define std
#elif defined(__WATCOMC__)
#define std
class bad_alloc { };
#endif
/*************************************************************************
// STL
**************************************************************************/