View source code
Display the source code in dmd/globals.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

dmd.globals.Global/global - multiple declarations

Variable global

Collection of global state

Global global ;

Struct Global

Collection of global compiler settings and global state used by the frontend

struct Global ;

Fields

NameTypeDescription
console void*opaque pointer to console for controlling text attributes
debugids dmd.root.array.Array!(dmd.identifier.Identifier)*command line debug versions and predefined versions
errors uintnumber of errors reported so far
filePath dmd.root.array.Array!(const(char)*)*Array of char*'s which form the file import lookup path
gag uint!=0 means gag reporting of errors & warnings
gaggedErrors uintnumber of errors reported while gagged
gaggedWarnings uintnumber of warnings reported while gagged
hasMainFunction boolWhether a main function has already been compiled in (for -main switch)
inifilename const(char)[]filename of configuration file as given by -conf=, or default value
params Paramcommand line parameters
path dmd.root.array.Array!(const(char)*)*Array of char*'s which form the import lookup path
varSequenceNumber uintRelative lifetime of VarDeclaration within a function, used for scope checks
vendor const(char)[]Compiler backend name
versionids dmd.root.array.Array!(dmd.identifier.Identifier)*command line versions and predefined versions
warnings uintnumber of warnings reported so far

Methods

NameDescription
deinitialize () Deinitializes the global state of the compiler.
endGagging (oldGagged) Stop gagging, restoring the old gagged state before the most recent call to startGagging.
finalDefaultlibname ()
increaseErrorCount () Increment the error count to record that an error has occurred in the current context.
startGagging () Start ignoring compile errors instead of reporting them.
versionChars ()
versionNumber ()
versionString ()

Authors

Walter Bright

License

Boost License 1.0