mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
30 lines
393 B
C++
30 lines
393 B
C++
|
#include <new>
|
||
|
|
||
|
extern "C" void free (void *);
|
||
|
|
||
|
void
|
||
|
operator delete (void *ptr, const std::nothrow_t&) throw ()
|
||
|
{
|
||
|
if (ptr)
|
||
|
free (ptr);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
operator delete (void *ptr) throw ()
|
||
|
{
|
||
|
if (ptr)
|
||
|
free (ptr);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
operator delete[] (void *ptr) throw ()
|
||
|
{
|
||
|
::operator delete (ptr);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
operator delete[] (void *ptr, const std::nothrow_t&) throw ()
|
||
|
{
|
||
|
::operator delete (ptr);
|
||
|
}
|