2
0

operator.cpp 162 B

123
  1. #include <stdlib.h> // for malloc and free
  2. void* operator new(unsigned int size) { return malloc(size); }
  3. void operator delete(void* ptr) { if (ptr) free(ptr); }