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_ShouldQuit - Return whether cleanup should be done.

Availability

       This function is available since SDL 3.2.0.

Description

       This function checks the passed in state and if cleanup should be done, sets the status to

       SDL_INIT_STATUS_UNINITIALIZING and returns true.

       If this function returns true, the calling code must call

       SDL_SetInitialized () to complete the cleanup.

Function Parameters

state  the initialization state to check.

Header File

       Defined in SDL3/SDL_mutex.h

Name

       SDL_ShouldQuit - Return whether cleanup should be done.

Return Value

       Returns true if cleanup needs to be done, false otherwise.

See Also

(3), SDL_SetInitialized(3), (3), SDL_ShouldInit(3)

Simple Directmedia Layer                           SDL 3.2.10                                  SDL_ShouldQuit(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_ShouldQuit(SDL_InitState*state);

Thread Safety

       It is safe to call this function from any thread.

See Also