mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7044 e03df62e-2008-0410-955e-edbf42e46eb7
13 lines
340 B
C++
13 lines
340 B
C++
// Use the global heap for this process for all allocate/free operations.
|
|
#include "inspircd_win32wrapper.h"
|
|
|
|
void * ::operator new(size_t iSize)
|
|
{
|
|
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, iSize); // zero memory for unix compatibility
|
|
}
|
|
|
|
void ::operator delete(void * ptr)
|
|
{
|
|
HeapFree(GetProcessHeap(), 0, ptr);
|
|
}
|