TCNewEnable.h File Reference

Enables the redefinition of the operator new and delete to dedect memory leaks. More...

#include <new>

Include dependency graph for TCNewEnable.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TC_USE_MEM_CHECK   1
#define TC_NEW_THROW   _THROW1(std::bad_alloc)
#define TC_DEL_THROW   _THROW0()
#define TC_CRT_DECL   __cdecl
#define TC_NEW   new(__FILE__, __LINE__)
#define new   TC_NEW

Functions

void *__cdecl operator new (std::size_t size)
void *__cdecl operator new[] (std::size_t size)
void *__cdecl operator new (std::size_t size, const char *fileName, int line)
void *__cdecl operator new[] (std::size_t size, const char *fileName, int line)
void __cdecl operator delete (void *p)
void __cdecl operator delete[] (void *p)
void __cdecl operator delete (void *p, const char *fileName, int line)
void __cdecl operator delete[] (void *p, const char *fileName, int line)


Detailed Description

Enables the redefinition of the operator new and delete to dedect memory leaks.

Author:
Thomas Goessler

Definition in file TCNewEnable.h.


Copyright (c) Thomas Goessler 2003 - 2008