mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
more asserts
This commit is contained in:
@@ -610,7 +610,10 @@ MIHP_HeapMemoryAreaHeader* MIHP_CreateHeapMemoryArea(MIHP_Heap* heap, size_t req
|
||||
if (area == NULL)
|
||||
return NULL;
|
||||
|
||||
MIHP_ASSERT((uintptr_t)area % heap->Config.AllocationAlignment == 0);
|
||||
MIHP_ASSERT(actualSize % heap->Config.AllocationAlignment == 0);
|
||||
MIHP_ASSERT(actualSize >= effectiveSize);
|
||||
|
||||
MIHP_MEMSET(area, 0, sizeof(MIHP_HeapMemoryAreaHeader));
|
||||
|
||||
area->InstigatingHeap = (MIHP_HeapOpaque)heap;
|
||||
|
||||
Reference in New Issue
Block a user