Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_AssertState - Possible outcomes from a triggered assertion.

Availability

       This enum is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                             SDL_AssertState(3type)

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).

Header File

       Defined in SDL3/SDL_assert.h

Name

       SDL_AssertState - Possible outcomes from a triggered assertion.

Synopsis

#include"SDL3/SDL.h"typedefenumSDL_AssertState{SDL_ASSERTION_RETRY,/**<Retrytheassertimmediately.*/SDL_ASSERTION_BREAK,/**<Makethedebuggertriggerabreakpoint.*/SDL_ASSERTION_ABORT,/**<Terminatetheprogram.*/SDL_ASSERTION_IGNORE,/**<Ignoretheassert.*/SDL_ASSERTION_ALWAYS_IGNORE/**<Ignoretheassertfromnowon.*/}SDL_AssertState;

See Also