api / org.gradle.nativeplatform / PreprocessingTool / define

define

abstract fun define(name: String): Unit

Defines a named preprocessor macros to use when compiling this binary. The macro will be supplied to the compiler as '-D name'.

abstract fun define(name: String, definition: String): Unit

Defines a named preprocessor macro with a value, which will be used when compiling this binary. The macro will be supplied to the compiler as '-D name=definition'.