SDL_ShouldQuit(3)

SDL_ShouldQuit3

Return whether cleanup should be done.

Usage

#include "SDL3/SDL.h"

bool SDL_ShouldQuit(SDL_InitState *state);

Header file

Defined in SDL3/SDL_mutex.h

Overview

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.

Return value

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

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.