include/SDL_error.h
changeset 1361 19418e4422cb
parent 1356 67114343400d
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
    38 extern DECLSPEC char * SDLCALL SDL_GetError(void);
    38 extern DECLSPEC char * SDLCALL SDL_GetError(void);
    39 extern DECLSPEC void SDLCALL SDL_ClearError(void);
    39 extern DECLSPEC void SDLCALL SDL_ClearError(void);
    40 
    40 
    41 /* Private error message function - used internally */
    41 /* Private error message function - used internally */
    42 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    42 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
       
    43 #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
    43 typedef enum {
    44 typedef enum {
    44 	SDL_ENOMEM,
    45 	SDL_ENOMEM,
    45 	SDL_EFREAD,
    46 	SDL_EFREAD,
    46 	SDL_EFWRITE,
    47 	SDL_EFWRITE,
    47 	SDL_EFSEEK,
    48 	SDL_EFSEEK,
       
    49 	SDL_UNSUPPORTED,
    48 	SDL_LASTERROR
    50 	SDL_LASTERROR
    49 } SDL_errorcode;
    51 } SDL_errorcode;
    50 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    52 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    51 
    53 
    52 
    54