Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1:/tmp/cvs-serv6759/source
Modified Files: flsupport.h Log Message: ""
Index: flsupport.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.h,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** flsupport.h 29 Nov 2003 03:32:48 -0000 1.56 --- flsupport.h 4 Dec 2003 03:32:57 -0000 1.57 *************** *** 17,21 ****
#include "flstdc.h" !
class FLEXT_SHARE FLEXT_CLASSDEF(flext_root); --- 17,21 ----
#include "flstdc.h" ! #include <new>
class FLEXT_SHARE FLEXT_CLASSDEF(flext_root); *************** *** 66,77 **** };
// 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); } #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); } #endif -
--- 66,84 ---- };
+ #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) 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) NEWTHROW { return flext_root::operator new[](bytes); } ! inline void operator delete[](void *blk) DELTHROW { flext_root::operator delete[](blk); } #endif