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_GetOriginalMemoryFunctions - Get the original set of SDL memory functions.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                  SDL_GetOriginalMemoryFunctions(3)

Description

       This   is   what   SDL_malloc   and  friends  will  use  by  default,  if  there  has  been  no  call  to
       SDL_SetMemoryFunctions.  This is not necessarily using  the  C  runtime's  malloc  functions  behind  the
       scenes! Different platforms and build configurations might do any number of unexpected things.

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_GetOriginalMemoryFunctions - Get the original set of SDL memory functions.

Synopsis

#include<SDL3/SDL_stdinc.h>voidSDL_GetOriginalMemoryFunctions(SDL_malloc_func*malloc_func,SDL_calloc_func*calloc_func,SDL_realloc_func*realloc_func,SDL_free_func*free_func);

Thread Safety

       It is safe to call this function from any thread.

See Also