Common_3/ThirdParty/OpenSource/FluidStudios/MemoryManager/mmgr.c
bool* mmgrBreakOnRealloc(void* reportedAddress)
{
	// Locate the existing allocation unit

	sAllocUnit* au = findAllocUnit(reportedAddress);

	// If you hit this assert, you tried to set a breakpoint on reallocation for an address that doesn't exist. Interrogate the
	// stack frame or the variable 'au' to see which allocation this is.
	m_assert(au != NULL);

	// If you hit this assert, you tried to set a breakpoint on reallocation for an address that wasn't allocated in a way that
	// is compatible with reallocation.
	m_assert(au->allocationType == m_alloc_malloc || au->allocationType == m_alloc_calloc || au->allocationType == m_alloc_realloc);

	return &au->breakOnRealloc;
}
// ---------------------------------------------------------------------------------------------------------------------------------
// -DOC- Simply call this routine with the address of an allocated block of RAM, to cause it to force a breakpoint when it is
// reallocated.
// ---------------------------------------------------------------------------------------------------------------------------------
DOC- Simply call this routine with the address of an allocated block of RAM, to cause it to force a breakpoint when it is
reallocated.
DOC - Simply call this routine with the address of an allocated block of RAM to cause it to force a breakpoint when it is reallocated .
bool* mmgrBreakOnRealloc(void* reportedAddress)
{
	sAllocUnit* au = findAllocUnit(reportedAddress);
	m_assert(au != NULL);
	m_assert(au->allocationType == m_alloc_malloc || au->allocationType == m_alloc_calloc || au->allocationType == m_alloc_realloc);
	return &au->breakOnRealloc;
}
bool * mmgrBreakOnRealloc ( void * reportedAddress ) { sAllocUnit * au = findAllocUnit ( reportedAddress ) ; m_assert ( au != NULL ) ; m_assert ( au -> allocationType == m_alloc_malloc || au -> allocationType == m_alloc_calloc || au -> allocationType == m_alloc_realloc ) ; return & au -> breakOnRealloc ; }
DOC- Simply call this routine with the address of an allocated block of RAM, to cause it to force a breakpoint when it is
reallocated.
DOC - Simply call this routine with the address of an allocated block of RAM to cause it to force a breakpoint when it is reallocated .
// Locate the existing allocation unit // If you hit this assert, you tried to set a breakpoint on reallocation for an address that doesn't exist. Interrogate the // stack frame or the variable 'au' to see which allocation this is. // If you hit this assert, you tried to set a breakpoint on reallocation for an address that wasn't allocated in a way that // is compatible with reallocation.