SDL_GetMemoryFunctions - Get the current set of SDL memory functions.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
malloc_func
filled with malloc function.
calloc_func
filled with calloc function.
realloc_func
filled with realloc function.
free_func
filled with free function.
Name
SDL_GetMemoryFunctions - Get the current set of SDL memory functions.
See Also
SDL_SetMemoryFunctions(3), SDL_GetOriginalMemoryFunctions(3) Simple Directmedia Layer SDL 3.2.20 SDL_GetMemoryFunctions(3)
Synopsis
#include<SDL3/SDL_stdinc.h>voidSDL_GetMemoryFunctions(SDL_malloc_func*malloc_func,SDL_calloc_func*calloc_func,SDL_realloc_func*realloc_func,SDL_free_func*free_func);
Thread Safety
This does not hold a lock, so do not call this in the unlikely event of a background thread calling
SDL_SetMemoryFunctions simultaneously.
