SDL_free_func.3type - Man Page

A callback used to implement SDL_free().

Synopsis

#include <SDL3/SDL_stdinc.h>

typedef void (SDLCALL *SDL_free_func)(void *mem);

Description

SDL will always ensure that the passed mem is a non-NULL pointer.

Function Parameters

mem

a pointer to allocated memory.

Thread Safety

It should be safe to call this callback from any thread.

Availability

This datatype is available since SDL 3.2.0.

See Also

SDL_free(3), SDL_GetOriginalMemoryFunctions(3), SDL_GetMemoryFunctions(3), SDL_SetMemoryFunctions(3)

Info

SDL 3.2.16 Simple Directmedia Layer SDL3 DATATYPES