Patch at21699 (Nijule)
This commit is contained in:
parent
c051c7f5b7
commit
e5a798357c
|
@ -1783,23 +1783,23 @@ void EnableDebugHandler(AMX *amx)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined MEMORY_TEST && !defined WIN32
|
#if !defined MEMORY_TEST && !defined WIN32
|
||||||
void * ::operator new(size_t size)
|
void * operator new(size_t size)
|
||||||
{
|
{
|
||||||
return (calloc(1, size));
|
return (calloc(1, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
void * ::operator new[](size_t size)
|
void * operator new[](size_t size)
|
||||||
{
|
{
|
||||||
return (calloc(1, size));
|
return (calloc(1, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ::operator delete(void * ptr)
|
void operator delete(void * ptr)
|
||||||
{
|
{
|
||||||
if (ptr)
|
if (ptr)
|
||||||
free(ptr);
|
free(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ::operator delete[](void * ptr)
|
void operator delete[](void * ptr)
|
||||||
{
|
{
|
||||||
if (ptr)
|
if (ptr)
|
||||||
free(ptr);
|
free(ptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user