Remove malloc log
This commit is contained in:
@@ -8,19 +8,12 @@
|
||||
#include "memory.h"
|
||||
#include "assert/assert.h"
|
||||
#include "util/math.h"
|
||||
#include "log/log.h"
|
||||
|
||||
size_t memoryGetAllocatedCount(void) {
|
||||
return MEMORY_POINTERS_IN_USE;
|
||||
}
|
||||
|
||||
void * memoryAllocate(const size_t size) {
|
||||
logDebug(
|
||||
"Attempt to allocate %u bytes (%.2fKB) of memory\n",
|
||||
size,
|
||||
size / 1024.0f
|
||||
);
|
||||
|
||||
assertTrue(size > 0, "Cannot allocate 0 bytes of memory.");
|
||||
void *ptr = malloc(size);
|
||||
assertNotNull(ptr, "Memory allocation failed.");
|
||||
|
||||
Reference in New Issue
Block a user