equal
deleted
inserted
replaced
34 /* Set up for C function definitions, even when using C++ */ |
34 /* Set up for C function definitions, even when using C++ */ |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
38 |
38 |
39 /** |
39 /** |
40 * @name Public functions |
40 * @name Public functions |
41 */ |
41 */ |
42 /*@{*/ |
42 /*@{*/ |
43 extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); |
43 extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); |
44 extern DECLSPEC char * SDLCALL SDL_GetError(void); |
44 extern DECLSPEC char * SDLCALL SDL_GetError(void); |
48 /** |
48 /** |
49 * @name Private functions |
49 * @name Private functions |
50 * @internal Private error message function - used internally |
50 * @internal Private error message 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 typedef enum { |
55 typedef enum { |
56 SDL_ENOMEM, |
56 SDL_ENOMEM, |
57 SDL_EFREAD, |
57 SDL_EFREAD, |
58 SDL_EFWRITE, |
58 SDL_EFWRITE, |
59 SDL_EFSEEK, |
59 SDL_EFSEEK, |
60 SDL_UNSUPPORTED, |
60 SDL_UNSUPPORTED, |
61 SDL_LASTERROR |
61 SDL_LASTERROR |
62 } SDL_errorcode; |
62 } SDL_errorcode; |
63 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); |
63 extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); |
64 /*@}*/ |
64 /*@}*/ |
65 |
65 |
66 /* Ends C function definitions when using C++ */ |
66 /* Ends C function definitions when using C++ */ |