Port to new memory model: M_MEMORY_FULL cannot return anymore

This commit is contained in:
Patrick Pelissier committed 2025-05-07 21:02:23 +02:00
1 parent 839e7c2957
commit 1cf7c4fa4d
16 files changed
+6 -78

No files matched your search

-2
View File
@@ -119,7 +119,6 @@
mem->current_segment = M_MEMORY_ALLOC(M_F(name,_segment_ct)); \
if (M_UNLIKELY_NOMEM(mem->current_segment == NULL)) { \
M_MEMORY_FULL(M_F(name,_segment_ct), 1); \
return; \
} \
mem->current_segment->next = NULL; \
mem->current_segment->count = 0; \
@@ -161,7 +160,6 @@
M_F(name,_segment_ct) *new_segment = M_MEMORY_ALLOC (M_F(name,_segment_ct)); \
if (M_UNLIKELY_NOMEM (new_segment == NULL)) { \
M_MEMORY_FULL(M_F(name,_segment_ct), 1); \
return NULL; \
} \
new_segment->next = segment; \
new_segment->count = 0; \