SDL_GetMemoryFunctions(3)
β¨ SDL_GetMemoryFunctions β¨
okay bestie, welcome to the SDL3 FUNCTIONS manual, and today's main character is SDL_GetMemoryFunctions(3) π«Ά she's lowkey the plug for peeking at whichever memory functions SDL is currently using. no cap.
π NAME π
SDL_GetMemoryFunctions β Get the current set of SDL memory functions.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
void SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func,
SDL_calloc_func *calloc_func,
SDL_realloc_func *realloc_func,
SDL_free_func *free_func);
π 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.
π₯ THREAD SAFETY π₯
bestie, listen. This does not hold a lock, so do not call this in the unlikely event of a background thread calling SDL_SetMemoryFunctions simultaneously. it's giving race condition energy and we are not doing that today π
π AVAILABILITY π
This function is available since SDL 3.2.0. periodt.
π SEE ALSO π
and that's the whole vibe, bestie π¦ this lil page came straight from Simple Directmedia Layer, SDL 3.4.18, all about SDL_GetMemoryFunctions(3). go forth and memory-function responsibly π β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms