Function SDL_SetMemoryFunctions
pub unsafe extern "C" fn SDL_SetMemoryFunctions(
malloc_func: Option<unsafe extern "C" fn(_: usize) -> *mut c_void>,
calloc_func: Option<unsafe extern "C" fn(_: usize, _: usize) -> *mut c_void>,
realloc_func: Option<unsafe extern "C" fn(_: *mut c_void, _: usize) -> *mut c_void>,
free_func: Option<unsafe extern "C" fn(_: *mut c_void)>,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
Replace SDL’s memory allocation functions with a custom set
\since This function is available since SDL 2.0.7.