sdlGetDefaultAssertionHandler function

Pointer<NativeFunction<SdlAssertionHandler>> sdlGetDefaultAssertionHandler()

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.

\since This function is available since SDL 2.0.2.

\sa SDL_GetAssertionHandler

extern DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(void)

Implementation

Pointer<NativeFunction<SdlAssertionHandler>> sdlGetDefaultAssertionHandler() {
  final sdlGetDefaultAssertionHandlerLookupFunction = libSdl2.lookupFunction<
      Pointer<NativeFunction<SdlAssertionHandler>> Function(),
      Pointer<NativeFunction<SdlAssertionHandler>>
          Function()>('SDL_GetDefaultAssertionHandler');
  return sdlGetDefaultAssertionHandlerLookupFunction();
}