1 #include "GraphCut.h"
\r
4 /* memory management */
\r
5 void* operator new(size_t size)
\r
8 // mexWarnMsgTxt("Overloaded new operator");
\r
9 ptr = mxMalloc(size);
\r
10 mexMakeMemoryPersistent(ptr);
\r
13 void* operator new[](size_t size)
\r
16 // mexWarnMsgTxt("Overloaded new[] operator");
\r
17 ptr = mxMalloc(size);
\r
18 mexMakeMemoryPersistent(ptr);
\r
21 void operator delete(void* ptr)
\r
23 // mexWarnMsgTxt("Overloaded delete operator");
\r
26 void operator delete[](void* ptr)
\r
28 // mexWarnMsgTxt("Overloaded delete[] operator");
\r