chore(memory): add additional tests and flag

This commit is contained in:
Adam Heinermann 2025-09-01 09:37:40 -07:00 committed by fallenoak
parent 2e044682e1
commit 8e9fb741b6
3 changed files with 83 additions and 5 deletions

View file

@ -7,7 +7,7 @@ void* SMemAlloc(size_t bytes, const char* filename, int32_t linenumber, uint32_t
void* result;
if (flags & 0x8) {
if (flags & SMEM_FLAG_ZEROMEMORY) {
result = calloc(1, alignedBytes);
} else {
result = malloc(alignedBytes);