Skip to content

defines

Jason Perkins edited this page Apr 14, 2015 · 8 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