Scroll to navigation

SDL_GetOriginalMemoryFunctions(3) SDL3 FUNCTIONS SDL_GetOriginalMemoryFunctions(3)

NAME

SDL_GetOriginalMemoryFunctions - Get the original set of SDL memory functions.

HEADER FILE

Defined in SDL3/SDL_stdinc.h

SYNOPSIS

#include "SDL3/SDL.h"
void SDL_GetOriginalMemoryFunctions(SDL_malloc_func *malloc_func,
                                SDL_calloc_func *calloc_func,
                                SDL_realloc_func *realloc_func,
                                SDL_free_func *free_func);

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

filled with malloc function.
filled with calloc function.
filled with realloc function.
filled with free function.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.1.3.

SDL 3.1.6 Simple Directmedia Layer