mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-23 19:03:27 +08:00
Sync SDL3 wiki -> header
This commit is contained in:
parent
14d2471a8f
commit
17a0fe3a0c
@ -122,7 +122,7 @@ find you enjoy structuring your program like this more!
|
|||||||
|
|
||||||
## How to use main callbacks in SDL3
|
## How to use main callbacks in SDL3
|
||||||
|
|
||||||
To enable the callback entry points, you include SDL_main with an extra define
|
To enable the callback entry points, you include SDL_main.h with an extra define,
|
||||||
from a single source file in your project:
|
from a single source file in your project:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
@ -130,7 +130,7 @@ from a single source file in your project:
|
|||||||
#include <SDL3/SDL_main.h>
|
#include <SDL3/SDL_main.h>
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you do this, you do not include a "main" function at all (and if you do,
|
Once you do this, you do not write a "main" function at all (and if you do,
|
||||||
the app will likely fail to link). Instead, you provide the following
|
the app will likely fail to link). Instead, you provide the following
|
||||||
functions:
|
functions:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user