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.2.0.
const char *error = SDL_GetError();
if (*error) {
SDL_Log("SDL error: %s", error);
SDL_ClearError();
}