diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-12-04 03:32:57 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-12-04 03:32:57 +0000 |
commit | bf1a5e1e9d38288f6a8bfc6ff7f49bef31b62439 (patch) | |
tree | edceb7f12a2eaa8d690d1bae19c5b2c62d2d55ab /externals/grill | |
parent | df40bd59509b30e24353946e89e90bbf9790cafa (diff) |
""
svn path=/trunk/; revision=1205
Diffstat (limited to 'externals/grill')
-rw-r--r-- | externals/grill/flext/flext.cw | bin | 880367 -> 880367 bytes | |||
-rw-r--r-- | externals/grill/flext/source/flsupport.h | 19 |
2 files changed, 13 insertions, 6 deletions
diff --git a/externals/grill/flext/flext.cw b/externals/grill/flext/flext.cw Binary files differindex 157b04d7..0cb462a7 100644 --- a/externals/grill/flext/flext.cw +++ b/externals/grill/flext/flext.cw diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index 2541e243..06337150 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -16,7 +16,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #define __FLSUPPORT_H #include "flstdc.h" - +#include <new> class FLEXT_SHARE FLEXT_CLASSDEF(flext_root); typedef class FLEXT_CLASSDEF(flext_root) flext_root; @@ -65,16 +65,23 @@ public: //! @} FLEXT_S_MEMORY }; +#ifndef _MSC_VER +#define NEWTHROW throw(std::bad_alloc) +#define DELTHROW throw() +#else +#define NEWTHROW +#define DELTHROW +#endif + // define global new/delete operators -inline void *operator new(size_t bytes) { return flext_root::operator new(bytes); } -inline void operator delete(void *blk) { flext_root::operator delete(blk); } +inline void *operator new(size_t bytes) NEWTHROW { return flext_root::operator new(bytes); } +inline void operator delete(void *blk) DELTHROW { flext_root::operator delete(blk); } #ifndef __MRC__ // doesn't allow new[] overloading?! -inline void *operator new[](size_t bytes) { return flext_root::operator new[](bytes); } -inline void operator delete[](void *blk) { flext_root::operator delete[](blk); } +inline void *operator new[](size_t bytes) NEWTHROW { return flext_root::operator new[](bytes); } +inline void operator delete[](void *blk) DELTHROW { flext_root::operator delete[](blk); } #endif - class FLEXT_SHARE FLEXT_CLASSDEF(flext); typedef class FLEXT_CLASSDEF(flext) flext; |