From bf1a5e1e9d38288f6a8bfc6ff7f49bef31b62439 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 4 Dec 2003 03:32:57 +0000 Subject: "" svn path=/trunk/; revision=1205 --- externals/grill/flext/flext.cw | Bin 880367 -> 880367 bytes externals/grill/flext/source/flsupport.h | 19 +++++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'externals') diff --git a/externals/grill/flext/flext.cw b/externals/grill/flext/flext.cw index 157b04d7..0cb462a7 100644 Binary files a/externals/grill/flext/flext.cw and b/externals/grill/flext/flext.cw differ 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 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; -- cgit v1.2.1