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
Struct Global
Collection of global compiler settings and global state used by the frontend
struct Global
;
Fields
Name | Type | Description |
---|---|---|
console
|
void* | opaque pointer to console for controlling text attributes |
debugids
|
dmd | command line debug versions and predefined versions |
errors
|
uint | number of errors reported so far |
filePath
|
dmd | Array of char*'s which form the file import lookup path |
gag
|
uint | !=0 means gag reporting of errors & warnings |
gaggedErrors
|
uint | number of errors reported while gagged |
gaggedWarnings
|
uint | number of warnings reported while gagged |
inifilename
|
const(char)[] | filename of configuration file as given by -conf= , or default value
|
params
|
Param | command line parameters |
path
|
dmd | Array of char*'s which form the import lookup path |
vendor
|
const(char)[] | Compiler backend name |
versionids
|
dmd | command line versions and predefined versions |
warnings
|
uint | number of warnings reported so far |
Methods
Name | Description |
---|---|
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
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.