Mercurial > sdl-ios-xcode
comparison include/SDL.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 |
---|---|
67 /* This function loads the SDL dynamically linked library and initializes | 67 /* This function loads the SDL dynamically linked library and initializes |
68 * the subsystems specified by 'flags' (and those satisfying dependencies) | 68 * the subsystems specified by 'flags' (and those satisfying dependencies) |
69 * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup | 69 * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup |
70 * signal handlers for some commonly ignored fatal signals (like SIGSEGV) | 70 * signal handlers for some commonly ignored fatal signals (like SIGSEGV) |
71 */ | 71 */ |
72 extern DECLSPEC int SDL_Init(Uint32 flags); | 72 extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); |
73 | 73 |
74 /* This function initializes specific SDL subsystems */ | 74 /* This function initializes specific SDL subsystems */ |
75 extern DECLSPEC int SDL_InitSubSystem(Uint32 flags); | 75 extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags); |
76 | 76 |
77 /* This function cleans up specific SDL subsystems */ | 77 /* This function cleans up specific SDL subsystems */ |
78 extern DECLSPEC void SDL_QuitSubSystem(Uint32 flags); | 78 extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags); |
79 | 79 |
80 /* This function returns mask of the specified subsystems which have | 80 /* This function returns mask of the specified subsystems which have |
81 been initialized. | 81 been initialized. |
82 If 'flags' is 0, it returns a mask of all initialized subsystems. | 82 If 'flags' is 0, it returns a mask of all initialized subsystems. |
83 */ | 83 */ |
84 extern DECLSPEC Uint32 SDL_WasInit(Uint32 flags); | 84 extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags); |
85 | 85 |
86 /* This function cleans up all initialized subsystems and unloads the | 86 /* This function cleans up all initialized subsystems and unloads the |
87 * dynamically linked library. You should call it upon all exit conditions. | 87 * dynamically linked library. You should call it upon all exit conditions. |
88 */ | 88 */ |
89 extern DECLSPEC void SDL_Quit(void); | 89 extern DECLSPEC void SDLCALL SDL_Quit(void); |
90 | 90 |
91 /* Ends C function definitions when using C++ */ | 91 /* Ends C function definitions when using C++ */ |
92 #ifdef __cplusplus | 92 #ifdef __cplusplus |
93 } | 93 } |
94 #endif | 94 #endif |