Remove malloc log

This commit is contained in:
2026-04-13 20:36:48 -05:00
parent 041ec3d710
commit 62c71f3fe6
-7
View File
@@ -8,19 +8,12 @@
#include "memory.h" #include "memory.h"
#include "assert/assert.h" #include "assert/assert.h"
#include "util/math.h" #include "util/math.h"
#include "log/log.h"
size_t memoryGetAllocatedCount(void) { size_t memoryGetAllocatedCount(void) {
return MEMORY_POINTERS_IN_USE; return MEMORY_POINTERS_IN_USE;
} }
void * memoryAllocate(const size_t size) { 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."); assertTrue(size > 0, "Cannot allocate 0 bytes of memory.");
void *ptr = malloc(size); void *ptr = malloc(size);
assertNotNull(ptr, "Memory allocation failed."); assertNotNull(ptr, "Memory allocation failed.");