DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
Set the error message for the current thread.
DECLSPEC char *SDLCALL SDL_GetErrorMsg(char *errstr, int maxlen)
Get the last error message that was set for the current thread.