mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
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
|
||||
void * ::operator new(size_t size)
|
||||
void * operator new(size_t size)
|
||||
{
|
||||
return (calloc(1, size));
|
||||
}
|
||||
|
||||
void * ::operator new[](size_t size)
|
||||
void * operator new[](size_t size)
|
||||
{
|
||||
return (calloc(1, size));
|
||||
}
|
||||
|
||||
void ::operator delete(void * ptr)
|
||||
void operator delete(void * ptr)
|
||||
{
|
||||
if (ptr)
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
void ::operator delete[](void * ptr)
|
||||
void operator delete[](void * ptr)
|
||||
{
|
||||
if (ptr)
|
||||
free(ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user