#include <stdlib.h>
#include "Alloc.h"
Go to the source code of this file.
Function Documentation
void* MyAlloc |
( |
size_t |
size | ) |
|
Definition at line 23 of file Alloc.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by SzAlloc().
{
if (size == 0)
return 0;
#ifdef _SZ_ALLOC_DEBUG
{
void *p = malloc(size);
fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
return p;
}
#else
return malloc(size);
#endif
}
void MyFree |
( |
void * |
address | ) |
|
Definition at line 38 of file Alloc.cc.
Referenced by SzFree().
{
#ifdef _SZ_ALLOC_DEBUG
if (address != 0)
fprintf(stderr, "\nFree; count = %10d, addr = %8X", --g_allocCount, (unsigned)address);
#endif
free(address);
}