SDL_ClearError(3)
π SDL_ClearError(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages β this one's a tiny little icon and honestly? it's giving "emotional reset button" β¨
πΈ NAME πΈ
SDL_ClearError β wipe away any previous error message for this thread. that's it. that's the whole job. no cap π
π SYNOPSIS π
#include <SDL3/SDL_error.h>
bool SDL_ClearError(void);
π¦ DESCRIPTION π¦
so like, picture this: your thread has been through some stuff π and there's an old error message just... sitting there. lingering. living rent free in your error buffer. SDL_ClearError is the function that clears any previous error message for this thread. fresh start, clean slate, main character energy π
β RETURN VALUE β
it returns true. that's the whole vibe. it just works, and it tells you so π«Ά
π§ THREAD SAFETY π§
it is safe to call this function from any thread. any of them. all of them. go wild, no notes π
β¨ AVAILABILITY β¨
this function has been available since SDL 3.2.0 β so if you're on anything older, bestie, it's not there, and that's just the truth π
π SEE ALSO π
SDL_GetError(3)β for when you wanna read the tea βSDL_SetError(3)β for when you wanna spill the tea π
and that's the whole page, gorgeous π this was SDL_ClearError(3) from the Simple Directmedia Layer crew, SDL 3.4.18 edition, and it ate. periodt. πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms