Skip to content

defines

Jason Perkins edited this page Jul 29, 2015 · 8 revisions

Adds preprocessor or compiler symbols to a project.

defines { "symbols" }

Parameters

symbols specifies a list of symbols to be defined.

Applies To

Project configurations.

Availability

Premake 4.0 or later.

Examples

Define two new symbols in the current project.

defines { "DEBUG", "TRACE" }

Symbols may also assign values.

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