sdlFree function
Free allocated memory.
The pointer is no longer valid after this call and cannot be dereferenced anymore.
If mem
is NULL, this function does nothing.
\param mem a pointer to allocated memory, or NULL.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_malloc \sa SDL_calloc \sa SDL_realloc
extern SDL_DECLSPEC void SDLCALL SDL_free(void *mem)
Implementation
void sdlFree(Pointer<NativeType> mem) {
final sdlFreeLookupFunction = libSdl3.lookupFunction<
Void Function(Pointer<NativeType> mem),
void Function(Pointer<NativeType> mem)>('SDL_free');
return sdlFreeLookupFunction(mem);
}