Skip to content
Aidan Gauland edited this page Jan 16, 2018 · 3 revisions

Home > [Scripting Reference](Scripting Reference) > defines


defines

The defines function adds preprocessor or compiler symbols to a project.

defines { "symbols" }

If a project includes multiple calls to defines the lists are concatenated, in the order in which they appear in the script.

Applies To

Solutions, projects, and configurations.

Parameters

symbols specifies a list of symbols to be defined.

Examples

Define two new symbols in the current project.

defines { "DEBUG", "TRACE" }

Symbols may also assign values.

defines { "CALLSPEC=__dllexport" }
Clone this wiki locally