mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
Update minimal_heap_implementation.inl
This commit is contained in:
@@ -10,6 +10,9 @@ bool MIHP_InitializeHeap(MIHP_Heap* heap, MIHP_HeapConfig config)
|
||||
if (MIHP_IsHeapInitialized(heap))
|
||||
return false;
|
||||
|
||||
if (heap == NULL)
|
||||
return false;
|
||||
|
||||
if (config.AllocationAlignment < sizeof(size_t))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user