Contents

define(_:to:_:)

Defines a value for a macro.

Declaration

static func define(_ name: String, to value: String? = nil, _ condition: BuildSettingCondition? = nil) -> CXXSetting

Parameters

  • name:

    The name of the macro.

  • value:

    The value of the macro.

  • condition:

    A condition that restricts the application of the build setting.

Discussion

If you don’t specify a value, the macro’s default value is 1.

See Also

Configuring CXX Settings