Function sdl2_sys::SDL_GetError
source · [−]Expand description
\brief Get the last error message that was set
SDL API functions may set error messages and then succeed, so you should only use the error value if a function fails.
This returns a pointer to a static buffer for convenience and should not be called by multiple threads simultaneously.
\return a pointer to the last error message that was set