Initial community commit
This commit is contained in:
40
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/language.md
vendored
Normal file
40
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/language.md
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
Sets the programming language used by a project.
|
||||
|
||||
```lua
|
||||
language ("lang")
|
||||
```
|
||||
|
||||
### Parameters ###
|
||||
|
||||
`lang` is the language identifier. Some languages require a module for full support.
|
||||
|
||||
| Language | Module |
|
||||
|----------|-------------------------------|
|
||||
| `C` | Built-in; always available |
|
||||
| `C++` | Built-in; always available |
|
||||
| `C#` | Built-in; always available |
|
||||
| `F#` | Built-in; always available |
|
||||
| `D` | Built-in; always available ([API and support](https://github.com/premake/premake-dlang/wiki)) |
|
||||
|
||||
|
||||
### Applies To ###
|
||||
|
||||
Project configurations.
|
||||
|
||||
### Availability ###
|
||||
|
||||
`C`, `C++`, and `C#` are available in Premake 4.0 or later. Others are 5.0 or later.
|
||||
|
||||
### Examples ###
|
||||
|
||||
Set the project language to C++.
|
||||
|
||||
```lua
|
||||
language "C++"
|
||||
```
|
||||
|
||||
Set the project language to C#
|
||||
|
||||
```lua
|
||||
language "C#"
|
||||
```
|
||||
Reference in New Issue
Block a user