Mercurial > sdl-ios-xcode
comparison include/SDL_error.h @ 337:9154ec9ca3d2
Explicitly specify the SDL API calling convention (C by default)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 Apr 2002 14:35:16 +0000 |
parents | f6ffac90895c |
children | b8d311d90021 |
comparison
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, |