A callback used to implement SDL_malloc().
SDL will always ensure that the passed size is greater than 0.
\param size the size to allocate. \returns a pointer to the 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_malloc \sa SDL_GetOriginalMemoryFunctions \sa SDL_GetMemoryFunctions \sa SDL_SetMemoryFunctions
See Implementation
A callback used to implement SDL_malloc().
SDL will always ensure that the passed size is greater than 0.
\param size the size to allocate. \returns a pointer to the 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_malloc \sa SDL_GetOriginalMemoryFunctions \sa SDL_GetMemoryFunctions \sa SDL_SetMemoryFunctions