zenilib: zenilib/jni/external/sdl/SDL/SDL_main.h File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
SDL_main.h File Reference
`#include "SDL_stdinc.h"`
`#include "begin_code.h"`
`#include "close_code.h"`

Go to the source code of this file.

## Macros

#define | C_LINKAGE

## Functions

C_LINKAGE int | SDL_main (int argc, char *argv[])
DECLSPEC void | SDL_SetMainReady (void)

## Detailed Description

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:

* #ifdef __cplusplus
* extern "C"
* #endif
* int main(int argc, char *argv[])
* {
* }
*

Definition in file SDL_main.h.

## Macro Definition Documentation

#define C_LINKAGE

Definition at line 64 of file SDL_main.h.

## Function Documentation

C_LINKAGE int SDL_main | ( | int | argc,
|  | char * | argv[]
| ) |  |

The prototype for the application's main() function

Referenced by main().

DECLSPEC void SDL_SetMainReady | ( | void |  | ) |

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 97 of file SDL.c.

References SDL_MainIsReady, and SDL_TRUE.

Referenced by main().