47 extern DECLSPEC
int SDLCALL
SDL_SetError(SDL_PRINTF_FORMAT_STRING
const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
88 #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM)
89 #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED)
90 #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param))
101 extern DECLSPEC
int SDLCALL SDL_Error(SDL_errorcode code);
DECLSPEC void SDLCALL SDL_ClearError(void)
Clear the error message for the current thread.
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.
DECLSPEC const char *SDLCALL SDL_GetError(void)
Get the last error message that was set.