# Interface PreprocessingTool

All Superinterfaces:
  `Tool`

@Incubating @Deprecated public interface PreprocessingTool extends Tool
Deprecated.
The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. `cpp-application`, `cpp-library`, `swift-application`, `swift-library`, `xctest`) instead.
A tool that permits configuration of the C preprocessor.

Since:
  2.10

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `define(String name)`
  Deprecated.
  Defines a named preprocessor macros to use when compiling this binary.
  `void`
  `define(String name, String definition)`
  Deprecated.
  Defines a named preprocessor macro with a value, which will be used when compiling this binary.
  `Map<String,String>`
  `getMacros()`
  Deprecated.
  The set of preprocessor macros to define when compiling this binary.

  ### Methods inherited from interface Tool

  `args, getArgs`

- ## Method Details

  - ### getMacros

    Map<String,String> getMacros()
    Deprecated.
    The set of preprocessor macros to define when compiling this binary.
    Since:
      2.10

  - ### define

    void define(String name)
    Deprecated.
    Defines a named preprocessor macros to use when compiling this binary. The macro will be supplied to the compiler as '-D name'.
    Since:
      2.10

  - ### define

    void define(String name, String definition)
    Deprecated.
    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'.
    Since:
      2.10