include/SDL_error.h
changeset 6808 3ad413bd1cd6
parent 6138 4c64952a58fb
child 6811 60d95fcfaf3c
equal deleted inserted replaced
6807:e3610bc90cf3 6808:3ad413bd1cd6
    50  *  Private error reporting function - used internally.
    50  *  Private error reporting function - used internally.
    51  */
    51  */
    52 /*@{*/
    52 /*@{*/
    53 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    53 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    54 #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
    54 #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
       
    55 #define SDL_InvalidParamError()	SDL_Error(SDL_INVALIDPARAM)
    55 typedef enum
    56 typedef enum
    56 {
    57 {
    57     SDL_ENOMEM,
    58     SDL_ENOMEM,
    58     SDL_EFREAD,
    59     SDL_EFREAD,
    59     SDL_EFWRITE,
    60     SDL_EFWRITE,
    60     SDL_EFSEEK,
    61     SDL_EFSEEK,
    61     SDL_UNSUPPORTED,
    62     SDL_UNSUPPORTED,
       
    63     SDL_INVALIDPARAM,
    62     SDL_LASTERROR
    64     SDL_LASTERROR
    63 } SDL_errorcode;
    65 } SDL_errorcode;
    64 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    66 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    65 /*@}*//*Internal error functions*/
    67 /*@}*//*Internal error functions*/
    66 
    68