OpenBarnyard
 
Loading...
Searching...
No Matches
TMemoryDebugOn.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// Include this file to enable memory debugging if TOSHI_PROFILER_MEMORY is defined.
3//
4// Note: This file should be the last include in order to make sure it works.
5// Include TMemoryDebugOff.h to disable debugging mode.
6//-----------------------------------------------------------------------------
7
8#if defined( TOSHI_PROFILER_MEMORY ) && !defined( TOSHI_PROFILER_MEMORY_ENABLED )
9
10# include "TMemoryDebug.h"
11
12# define new ( TMemory__FUNC__ = __FUNCSIG__, TMemory__FILE__ = __FILE__, TMemory__LINE__ = __LINE__ ) && TFALSE ? TNULL : new
13# define TMalloc( ... ) TMalloc( __VA_ARGS__, __FILE__, __LINE__ )
14# define TOSHI_PROFILER_MEMORY_ENABLED
15
16#endif