Mercurial > sdl-ios-xcode
comparison include/SDL_error.h @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | 67114343400d |
children | 782fd950bd46 c121d94672cb a1b03ba2fcd0 |
comparison
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 |