if (!theAllocator)
return 0;
else
- return memPoolInUseCount(theAllocator);
+ return theAllocator->inUseCount();
}
void
return ((s + sizeof(void*) - 1) / sizeof(void*)) * sizeof(void*);
}
-int
-memPoolInUseCount(MemAllocator * pool)
-{
- return pool->inUseCount();
-}
-
int
memPoolsTotalAllocated(void)
{
*/
extern int memPoolGetGlobalStats(MemPoolGlobalStats * stats);
-/// \ingroup MemPoolsAPI
-extern int memPoolInUseCount(MemAllocator *);
/// \ingroup MemPoolsAPI
extern int memPoolsTotalAllocated(void);
size_t result = 0;
for (int counter = 0; counter < mem_str_pool_count; ++counter)
- result += memPoolInUseCount(GetStrPool(counter));
+ result += GetStrPool(counter)->inUseCount();
return result;
}
int
memInUse(mem_type type)
{
- return memPoolInUseCount(GetPool(type));
+ return GetPool(type)->inUseCount();
}
/* ick */
MemImplementingAllocator * memPoolIterateNext(MemPoolIterator * iter) STUB_RETVAL(NULL)
void memPoolIterateDone(MemPoolIterator ** iter) STUB
int memPoolGetGlobalStats(MemPoolGlobalStats * stats) STUB_RETVAL(0)
-int memPoolInUseCount(MemAllocator *) STUB_RETVAL(0)
int memPoolsTotalAllocated(void) STUB_RETVAL(0)