include/SDL_error.h
changeset 7037 3fedf1f25b94
parent 6885 700f1b25f77f
child 7191 75360622e65f
     1.1 --- a/include/SDL_error.h	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/include/SDL_error.h	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -39,7 +39,8 @@
     1.4  #endif
     1.5  
     1.6  /* Public functions */
     1.7 -extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
     1.8 +/* SDL_SetError() unconditionally returns -1. */
     1.9 +extern DECLSPEC int SDLCALL SDL_SetError(const char *fmt, ...);
    1.10  extern DECLSPEC const char *SDLCALL SDL_GetError(void);
    1.11  extern DECLSPEC void SDLCALL SDL_ClearError(void);
    1.12  
    1.13 @@ -62,7 +63,8 @@
    1.14      SDL_UNSUPPORTED,
    1.15      SDL_LASTERROR
    1.16  } SDL_errorcode;
    1.17 -extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    1.18 +/* SDL_Error() unconditionally returns -1. */
    1.19 +extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code);
    1.20  /*@}*//*Internal error functions*/
    1.21  
    1.22  /* Ends C function definitions when using C++ */