SDL_ShouldQuit
Return whether cleanup should be done.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Return whether cleanup should be done.
#include <SDL3/SDL_mutex.h>
bool SDL_ShouldQuit(SDL_InitState *state);
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.
Returns true if cleanup needs to be done, false otherwise.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.