library/src/memory_profiling/BP_LibraryMemoryProfiling.cc
// checks to see if the chunk is in the stack
checks to see if the chunk is in the stack
checks to see if the chunk is in the stack
P_BP_MEMPROF_ENTRY BP_MemProfilerFindChunk(void *addr)
{
	size_t n = 0;
	for(; n < global_memprof_pool_n; n++)
	{
		if(global_memprof_pool[n].mem_ptr == addr)
			return (P_BP_MEMPROF_ENTRY) &global_memprof_pool[n];
	}
	return NULL;
}
P_BP_MEMPROF_ENTRY BP_MemProfilerFindChunk ( void * addr ) { size_t n = 0 ; for ( ; n < global_memprof_pool_n ; n ++ ) { if ( global_memprof_pool [ n ] . mem_ptr == addr ) return ( P_BP_MEMPROF_ENTRY ) & global_memprof_pool [ n ] ; } return NULL ; }
checks to see if the chunk is in the stack
checks to see if the chunk is in the stack
// get the entry at the specified location // return indicating failure