SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | SDL_MAIN_AVAILABLE |
#define | C_LINKAGE |
#define | SDLMAIN_DECLSPEC |
#define | main SDL_main |
Functions | |
C_LINKAGE SDLMAIN_DECLSPEC int | SDL_main (int argc, char *argv[]) |
void | SDL_SetMainReady (void) |
int | SDL_RegisterApp (char *name, Uint32 style, void *hInst) |
void | SDL_UnregisterApp (void) |
Redefine main() on some platforms so that it is called by SDL.
The application's main() function must be called with C linkage, and should be declared like this:
Definition in file SDL_main.h.
#define C_LINKAGE |
Definition at line 88 of file SDL_main.h.
#define main SDL_main |
Definition at line 111 of file SDL_main.h.
Referenced by SDL_Error(), SDL_getenv(), and SDL_GetSystemRAM().
#define SDL_MAIN_AVAILABLE |
Definition at line 40 of file SDL_main.h.
#define SDLMAIN_DECLSPEC |
Definition at line 92 of file SDL_main.h.
C_LINKAGE SDLMAIN_DECLSPEC int SDL_main | ( | int | argc, |
char * | argv[] | ||
) |
This can be called to set the application class at startup
This is called by the real SDL main function to let the rest of the library know that initialization was done properly.
Calling this yourself without knowing what you're doing can cause crashes and hard to diagnose problems with your application.
Definition at line 99 of file SDL.c.
References SDL_MainIsReady, and SDL_TRUE.