Skip to main content

mi_heap_set_default

Function mi_heap_set_default 

Source
pub unsafe extern "C" fn mi_heap_set_default(
    heap: *mut mi_heap_t,
) -> *mut mi_heap_t
Expand description

Set the default heap to use for mi_malloc et al.

Returns the previous default heap.

Note: not available when using the v3 feature (removed in mimalloc v3.2).