J
JeanDean
For some debugging purpose I want to use overloaded new instead of
existing MyAlloc() in a huge code base.
But below macro doesnt work.
Is there any way to pass "size" to overloaded new ?
#define MyAlloc(size) new(size, WORK_HEAD )
overloaded new code is :
void* operator new(size_t sz, int headType) {
..
..
..
}
existing MyAlloc() in a huge code base.
But below macro doesnt work.
Is there any way to pass "size" to overloaded new ?
#define MyAlloc(size) new(size, WORK_HEAD )
overloaded new code is :
void* operator new(size_t sz, int headType) {
..
..
..
}