Clear any previous error message for this thread.
Defined in <SDL3/SDL_error.h>
bool SDL_ClearError(void);
(bool) Returns true.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.
const char *error = SDL_GetError();
if (*error) {
"SDL error: %s", error);
SDL_Log(
SDL_ClearError(); }