table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.24+ds-1
- unstable 3.2.26+ds-1
- experimental 3.3.2+git20251029~d9ca045+ds-1
| SDL_AssertState(3type) | SDL3 DATATYPES | SDL_AssertState(3type) |
NAME¶
SDL_AssertState - Possible outcomes from a triggered assertion.
SYNOPSIS¶
#include <SDL3/SDL_assert.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.
| SDL 3.2.26 | Simple Directmedia Layer |