A callback used to implement SDL_malloc().
Defined in <SDL3/SDL_stdinc.h>
typedef void *(SDLCALL *SDL_malloc_func)(size_t size);
size | the size to allocate. |
Returns a pointer to the allocated memory, or NULL if allocation failed.
SDL will always ensure that the passed size
is greater than 0.
It should be safe to call this callback from any thread.
This datatype is available since SDL 3.1.3.