28 #include "CppUTestConfig.h"
30 #if CPPUTEST_USE_MEM_LEAK_DETECTION
33 #ifndef CPPUTEST_USE_NEW_MACROS
35 #if CPPUTEST_USE_STD_CPP_LIB
40 void*
operator new(
size_t size,
const char* file,
int line)
throw (std::bad_alloc);
41 void*
operator new[](
size_t size,
const char* file,
int line)
throw (std::bad_alloc);
42 void*
operator new(
size_t size)
throw(std::bad_alloc);
43 void*
operator new[](
size_t size)
throw(std::bad_alloc);
47 void*
operator new(
size_t size,
const char* file,
int line);
48 void*
operator new[](
size_t size,
const char* file,
int line);
49 void*
operator new(
size_t size);
50 void*
operator new[](
size_t size);
54 #define new new(__FILE__, __LINE__)
56 #define CPPUTEST_USE_NEW_MACROS 1