-
Notifications
You must be signed in to change notification settings - Fork 21
language
mba105 edited this page Sep 24, 2014
·
2 revisions
Home > [Scripting Reference](Scripting Reference) > language
The language function sets the programming language used by a project.
#!lua
language ("lang")
Premake currently supports C, C++, and C#. Not all languages are supported by all of the generators; for instance, SharpDevelop does not (currently) support C or C++ development, and Code::Blocks does not support the .NET languages (C#, Managed C++).
Solutions and projects.
lang is the language identifier. This is a string value, set to one of C, C++, or C#. The value is not case sensitive.
Set the project language to C++.
#!lua
language "C++"
Set the project language to C#
#!lua
language "C#"