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:
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
// System Includes -------------------------------------------------------------
|
// System Includes -------------------------------------------------------------
|
||||||
#include <GameSoundDefs.h>
|
#include <GameSoundDefs.h>
|
||||||
|
#include <new>
|
||||||
|
|
||||||
// Project Includes ------------------------------------------------------------
|
// Project Includes ------------------------------------------------------------
|
||||||
|
|
||||||
@@ -75,14 +76,14 @@ public:
|
|||||||
virtual status_t GetAttributes(gs_attribute * outAttributes,
|
virtual status_t GetAttributes(gs_attribute * outAttributes,
|
||||||
size_t inAttributeCount);
|
size_t inAttributeCount);
|
||||||
|
|
||||||
// void * operator new(size_t size);
|
void * operator new(size_t size);
|
||||||
// void * operator new(size_t size, const nothrow_t &) throw();
|
void * operator new(size_t size, const nothrow_t &) throw();
|
||||||
// void operator delete(void * ptr);
|
void operator delete(void * ptr);
|
||||||
//#if !__MWERKS__
|
#if !__MWERKS__
|
||||||
// there's a bug in MWCC under R4.1 and earlier
|
// there's a bug in MWCC under R4.1 and earlier
|
||||||
// void operator delete(void * ptr,
|
void operator delete(void * ptr,
|
||||||
// const nothrow_t &) throw();
|
const nothrow_t &) throw();
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
static status_t SetMemoryPoolSize(size_t in_poolSize);
|
static status_t SetMemoryPoolSize(size_t in_poolSize);
|
||||||
static status_t LockMemoryPool(bool in_lockInCore);
|
static status_t LockMemoryPool(bool in_lockInCore);
|
||||||
|
|||||||
@@ -201,19 +201,37 @@ BGameSound::Perform(int32 selector,
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
void *
|
void *
|
||||||
BGameSound::operator new(size_t size)
|
BGameSound::operator new(size_t size)
|
||||||
{
|
{
|
||||||
return NULL;
|
return ::operator new(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void *
|
||||||
|
BGameSound::operator new(size_t size, const nothrow_t &nt) throw()
|
||||||
|
{
|
||||||
|
return ::operator new(size, nt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BGameSound::operator delete(void *ptr)
|
BGameSound::operator delete(void *ptr)
|
||||||
{
|
{
|
||||||
|
::operator delete(ptr);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
|
#if !__MWERKS__
|
||||||
|
// there's a bug in MWCC under R4.1 and earlier
|
||||||
|
void
|
||||||
|
BGameSound::operator delete(void *ptr, const nothrow_t &nt) throw()
|
||||||
|
{
|
||||||
|
::operator delete(ptr, nt);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BGameSound::SetMemoryPoolSize(size_t in_poolSize)
|
BGameSound::SetMemoryPoolSize(size_t in_poolSize)
|
||||||
|
|||||||
Reference in New Issue
Block a user