mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
chore(memory): add additional tests and flag
This commit is contained in:
parent
2e044682e1
commit
8e9fb741b6
3 changed files with 83 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue