logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_realloc_func - A callback used to implement SDL_realloc().

Availability

       This datatype is available since SDL 3.2.0.

Description

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

Function Parameters

mem    a pointer to allocated memory to reallocate, or NULL.

       size   the new size of the memory.

Name

       SDL_realloc_func - A callback used to implement SDL_realloc().

Return Value

       Returns a pointer to the newly allocated memory, or NULL if allocation failed.

See Also

SDL_realloc(3), SDL_GetOriginalMemoryFunctions(3), SDL_GetMemoryFunctions(3), SDL_SetMemoryFunctions(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_realloc_func(3type)

Synopsis

#include<SDL3/SDL_stdinc.h>typedefvoid*(SDLCALL*SDL_realloc_func)(void*mem,size_tsize);

Thread Safety

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

See Also