# dmd.globals

Stores command line options and contains other miscellaneous declarations.

#### Authors

Walter Bright

#### License

Boost License 1.0

Source: globals.d

Documentation: https://dlang.org/phobos/dmd_globals.html

Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/globals.d

- `TargetOS`

  #### Declaration

  `enum `TargetOS`: ubyte;`

  Bit decoding of the `TargetOS`

- `JsonFieldFlags`

  #### Declaration

  `enum `JsonFieldFlags`: uint;`

  Each flag represents a field that can be included in the JSON output.

  NOTE: set type to uint so its size matches C++ unsigned type

- `CxxHeaderMode`

  #### Declaration

  `enum `CxxHeaderMode`: uint;`

  Configuration for the C++ header generator

  - `none`

    #### Declaration

    ``none``

    Don't generate headers

  - `silent`

    #### Declaration

    ``silent``

    Generate headers

  - `verbose`

    #### Declaration

    ``verbose``

    Generate headers and add comments for hidden declarations

- `FeatureState`

  #### Declaration

  `enum `FeatureState`: byte;`

  Trivalent boolean to represent the state of a `revert`able change

  - `default_`

    #### Declaration

    ``default_``

    Not specified by the user

  - `disabled`

    #### Declaration

    ``disabled``

    Specified as `-revert=`

  - `enabled`

    #### Declaration

    ``enabled``

    Specified as `-preview=`