logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HINT_ASSERT - A variable controlling response to SDL_assert failures.

Availability

       This hint is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                 SDL_HINT_ASSERT(3)

Description

       The variable can be set to the following case-sensitive values:

       • "abort": Program terminates immediately.

       • "break": Program triggers a debugger breakpoint.

       • "retry": Program reruns the SDL_assert's test again.

       • "ignore": Program continues on, ignoring this assertion failure this time.

       • "always_ignore": Program continues on, ignoring this assertion failure for the rest of the run.

       Note  that  SDL_SetAssertionHandler offers a programmatic means to deal with assertion failures through a
       callback, and this hint is largely intended to be  used  via  environment  variables  by  end  users  and
       automated tools.

       This hint should be set before an assertion failure is triggered and can be changed at any time.

Name

       SDL_HINT_ASSERT - A variable controlling response to SDL_assert failures.

Synopsis

#include<SDL3/SDL_hints.h>#defineSDL_HINT_ASSERT"SDL_ASSERT"

See Also