00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00028 #ifndef _SDL_error_h
00029 #define _SDL_error_h
00030
00031 #include "SDL_stdinc.h"
00032
00033 #include "begin_code.h"
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00043 extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
00044 extern DECLSPEC char * SDLCALL SDL_GetError(void);
00045 extern DECLSPEC void SDLCALL SDL_ClearError(void);
00053 #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM)
00054 #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED)
00055 typedef enum {
00056 SDL_ENOMEM,
00057 SDL_EFREAD,
00058 SDL_EFWRITE,
00059 SDL_EFSEEK,
00060 SDL_UNSUPPORTED,
00061 SDL_LASTERROR
00062 } SDL_errorcode;
00063 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 #include "close_code.h"
00071
00072 #endif