Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

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


resdefines

The resdefines function specifies preprocessor symbols for the resource compiler.

#!lua
resdefines { "symbols" }

If a project includes multiple calls to resdefines 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.

#!lua
resdefines { "DEBUG", "TRACE" }

Symbols may also assign values.

#!lua
resdefines { "CALLSPEC=__dllexport" }
Clone this wiki locally