inspircd/win/inspircd_memory_functions.cpp
2007-05-19 16:01:06 +00:00

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);
}