define(_:to:_:)

    Defines a value for a macro.

    BuildSettings.swift:156
    SwiftPM
    5.0+
    static func define(_ name: String, to value: String? = nil, _ condition: BuildSettingCondition? = nil) -> CSetting

    Parameters

    name

    The name of the macro.

    value

    The value of the macro.

    condition

    A condition that restricts the use of the build setting.

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

    See also