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

# SDL\_AssertState(3type)

Possible outcomes from a triggered assertion.

## NAME

SDL\_AssertState - Possible outcomes from a triggered assertion.

## HEADER FILE

Defined in SDL3/SDL\_assert.h

## SYNOPSIS

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

**typedef enum SDL\_AssertState** **{**     **SDL\_ASSERTION\_RETRY,  /\*\*\< Retry the assert immediately. \*/**     **SDL\_ASSERTION\_BREAK,  /\*\*\< Make the debugger trigger a breakpoint. \*/**     **SDL\_ASSERTION\_ABORT,  /\*\*\< Terminate the program. \*/**     **SDL\_ASSERTION\_IGNORE,  /\*\*\< Ignore the assert. \*/**     **SDL\_ASSERTION\_ALWAYS\_IGNORE  /\*\*\< Ignore the assert from now on. \*/** **} SDL\_AssertState;**

## DESCRIPTION

When an enabled assertion triggers, it may call the assertion handler (possibly one provided by the app via

**SDL\_SetAssertionHandler** ), which will return one of these values, possibly after asking the user.

Then SDL will respond based on this outcome (loop around to retry the condition, try to break in a debugger, kill the program, or ignore the problem).

## AVAILABILITY

This enum is available since SDL 3.2.0.
