16 for(i = 0; i < 10000; i++)
18 if(Mem->
Alloc != NULL)
21 Total = Total + Mem->
Size;
26 if(NrReservations) *NrReservations = Nr;
27 if(NrTotalSize) *NrTotalSize = Total;
36 for(i = 0; i < 10000; i++)
38 if(Mem->
Alloc == NULL)
return Mem;
51 for(i = 0; i < 10000; i++)
53 if(Mem->
Alloc == Pointer)
return Mem;
64 dword NrReservations, NrTotalSize;
66 ret = TAP_MemAlloc(size);
82 LogEntryFBLibPrintf(TRUE,
"FMUC: %s has requested %lu bytes. Currently %lu, %lu bytes", Requester, size, NrReservations, NrTotalSize);
90 dword NrReservations, NrTotalSize;
105 LogEntryFBLibPrintf(TRUE,
"FMUC: '%s' has released %lu bytes from '%s'. Currently %lu, %lu bytes", Requester, Mem->
Size, Mem->
Requester, NrReservations, NrTotalSize);
void FMUC_MemoryDump(dword *NrReservations, dword *NrTotalSize)
void FMUC_FreeMemory(char *Requester, void *Pointer)
tFMUC_MemDebug * FMUC_MemoryFindPointer(void *Pointer)
tFMUC_MemDebug * FMUC_MemoryFindFree(void)
tFMUC_MemDebug FMUC_Memory[10000]
void * FMUC_ReserveMemory(char *Requester, dword size)
void LogEntryFBLibPrintf(bool Console, char *format,...)