premake/website/docs/entrypoint.md

32 lines
452 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Specify the program entry point, e.g. `main()`.
```lua
entrypoint ("value")
```
### Parameters ###
`value` is the name of the program's entry point function.
### Applies To ###
Project configurations.
### Availability ###
Premake 5.0 or later.
### Examples ###
Use the Microsoft Windows console application entry point instead of the usual `WinMain()`.
```lua
entrypoint "mainCRTStartup"
```
### See Also ###
* [`WinMain` flag](flags.md)