---
name: "SDL_GetDefaultAssertionHandler"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetDefaultAssertionHandler"
---

# SDL\_GetDefaultAssertionHandler(3)

Get the default assertion handler.

## NAME

SDL\_GetDefaultAssertionHandler - Get the default assertion handler.

## HEADER FILE

Defined in SDL3/SDL\_assert.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_AssertionHandler SDL\_GetDefaultAssertionHandler(void);**

## DESCRIPTION

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.

## RETURN VALUE

( **SDL\_AssertionHandler** ) Returns the default

**SDL\_AssertionHandler**\
  that is called when an assert triggers.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetAssertionHandler**(3)](/SDL_GetAssertionHandler/3.md)
