added missing operator new and operator delete

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1404 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-10-06 11:39:16 +00:00
parent 63990f7f3b
commit 89e936f711
2 changed files with 29 additions and 10 deletions
+8 -7
View File
@@ -31,6 +31,7 @@
// System Includes -------------------------------------------------------------
#include <GameSoundDefs.h>
#include <new>
// Project Includes ------------------------------------------------------------
@@ -75,14 +76,14 @@ public:
virtual status_t GetAttributes(gs_attribute * outAttributes,
size_t inAttributeCount);
// void * operator new(size_t size);
// void * operator new(size_t size, const nothrow_t &) throw();
// void operator delete(void * ptr);
//#if !__MWERKS__
void * operator new(size_t size);
void * operator new(size_t size, const nothrow_t &) throw();
void operator delete(void * ptr);
#if !__MWERKS__
// there's a bug in MWCC under R4.1 and earlier
// void operator delete(void * ptr,
// const nothrow_t &) throw();
//#endif
void operator delete(void * ptr,
const nothrow_t &) throw();
#endif
static status_t SetMemoryPoolSize(size_t in_poolSize);
static status_t LockMemoryPool(bool in_lockInCore);