Function sdl2_sys::SDL_SetMemoryFunctions
source · pub unsafe extern "C" fn SDL_SetMemoryFunctions(
malloc_func: SDL_malloc_func,
calloc_func: SDL_calloc_func,
realloc_func: SDL_realloc_func,
free_func: SDL_free_func,
) -> c_int
Expand description
Replace SDL’s memory allocation functions with a custom set
\since This function is available since SDL 2.0.7.