mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 10:57:22 +08:00
Sync SDL3 wiki -> header
This commit is contained in:
@@ -406,16 +406,15 @@ typedef int (SDLCALL *SDL_main_func)(int argc, char *argv[]);
|
|||||||
/**
|
/**
|
||||||
* An app-supplied function for program entry.
|
* An app-supplied function for program entry.
|
||||||
*
|
*
|
||||||
* Apps do not directly create this function; they should create
|
* Apps do not directly create this function; they should create a standard
|
||||||
* a standard ANSI-C `main` function instead. If SDL needs to
|
* ANSI-C `main` function instead. If SDL needs to insert some startup code
|
||||||
* insert some startup code before `main` runs, or the platform
|
* before `main` runs, or the platform doesn't actually _use_ a function
|
||||||
* doesn't actually _use_ a function called "main", SDL will do some
|
* called "main", SDL will do some macro magic to redefine `main` to
|
||||||
* macro magic to redefine `main` to `SDL_main` and provide its
|
* `SDL_main` and provide its own `main`.
|
||||||
* own `main`.
|
|
||||||
*
|
*
|
||||||
* Apps should include `SDL_main.h` in the same file as their
|
* Apps should include `SDL_main.h` in the same file as their `main` function,
|
||||||
* `main` function, and they should not use that symbol for anything
|
* and they should not use that symbol for anything else in that file, as it
|
||||||
* else in that file, as it might get redefined.
|
* might get redefined.
|
||||||
*
|
*
|
||||||
* This function is only provided by the app if it isn't using
|
* This function is only provided by the app if it isn't using
|
||||||
* SDL_MAIN_USE_CALLBACKS.
|
* SDL_MAIN_USE_CALLBACKS.
|
||||||
|
|||||||
Reference in New Issue
Block a user