include/SDL_error.h
changeset 6811 60d95fcfaf3c
parent 6808 3ad413bd1cd6
child 6885 700f1b25f77f
     1.1 --- a/include/SDL_error.h	Sat Jan 12 14:06:58 2013 -0500
     1.2 +++ b/include/SDL_error.h	Sat Jan 12 22:58:12 2013 -0800
     1.3 @@ -52,7 +52,7 @@
     1.4  /*@{*/
     1.5  #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
     1.6  #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
     1.7 -#define SDL_InvalidParamError()	SDL_Error(SDL_INVALIDPARAM)
     1.8 +#define SDL_InvalidParamError(param)	SDL_SetError("Parameter '%s' is invalid", (param))
     1.9  typedef enum
    1.10  {
    1.11      SDL_ENOMEM,
    1.12 @@ -60,7 +60,6 @@
    1.13      SDL_EFWRITE,
    1.14      SDL_EFSEEK,
    1.15      SDL_UNSUPPORTED,
    1.16 -    SDL_INVALIDPARAM,
    1.17      SDL_LASTERROR
    1.18  } SDL_errorcode;
    1.19  extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);