sdlGetDefaultAssertionHandler function
Get the default assertion handler.
This returns the function pointer that is called by default when an assertion is triggered. This is an internal function provided by SDL, that is used for assertions when SDL_SetAssertionHandler() hasn't been used to provide a different function.
\returns the default SDL_AssertionHandler that is called when an assert triggers.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetAssertionHandler
extern SDL_DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(void)
Implementation
Pointer<NativeFunction<SdlAssertionHandler>> sdlGetDefaultAssertionHandler() {
final sdlGetDefaultAssertionHandlerLookupFunction = libSdl3.lookupFunction<
Pointer<NativeFunction<SdlAssertionHandler>> Function(),
Pointer<NativeFunction<SdlAssertionHandler>>
Function()>('SDL_GetDefaultAssertionHandler');
return sdlGetDefaultAssertionHandlerLookupFunction();
}