SDL_realloc_func

A callback used to implement SDL_realloc().

SDL will always ensure that the passed size is greater than 0.

\param mem a pointer to allocated memory to reallocate, or NULL. \param size the new size of the memory. \returns a pointer to the newly allocated memory, or NULL if allocation failed.

\threadsafety It should be safe to call this callback from any thread.

\since This datatype is available since SDL 3.2.0.

\sa SDL_realloc \sa SDL_GetOriginalMemoryFunctions \sa SDL_GetMemoryFunctions \sa SDL_SetMemoryFunctions

extern (C) nothrow @nogc
alias SDL_realloc_func = void* function
(
void* mem
,
size_t size
)

Meta