74 extern DECLSPEC
char * SDLCALL
SDL_GetErrorMsg(
char *errstr,
int maxlen);
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);
int SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
Set the error message for the current thread.
void SDL_ClearError(void)
Clear the error message for the current thread.
const char * SDL_GetError(void)
Get the last error message that was set.
char * SDL_GetErrorMsg(char *errstr, int maxlen)
Get the last error message that was set for the current thread.
#define SDL_PRINTF_FORMAT_STRING
int SDL_Error(SDL_errorcode code)
#define SDL_PRINTF_VARARG_FUNC(fmtargnumber)