include/SDL_error.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 769 b8d311d90021
equal deleted inserted replaced
336:745873ea091f 337:9154ec9ca3d2
    35 #ifdef __cplusplus
    35 #ifdef __cplusplus
    36 extern "C" {
    36 extern "C" {
    37 #endif
    37 #endif
    38 
    38 
    39 /* Public functions */
    39 /* Public functions */
    40 extern DECLSPEC void SDL_SetError(const char *fmt, ...);
    40 extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
    41 extern DECLSPEC char * SDL_GetError(void);
    41 extern DECLSPEC char * SDLCALL SDL_GetError(void);
    42 extern DECLSPEC void SDL_ClearError(void);
    42 extern DECLSPEC void SDLCALL SDL_ClearError(void);
    43 
    43 
    44 /* Private error message function - used internally */
    44 /* Private error message function - used internally */
    45 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    45 #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    46 typedef enum {
    46 typedef enum {
    47 	SDL_ENOMEM,
    47 	SDL_ENOMEM,