| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-09-20 | Invert --cfg debug to --cfg ndebug | Alex Crichton | -1/+2 | |
| Many people will be very confused that their debug! statements aren't working when they first use rust only to learn that they should have been building with `--cfg debug` the entire time. This inverts the meaning of the flag to instead of enabling debug statements, now it disables debug statements. This way the default behavior is a bit more reasonable, and requires less end-user configuration. Furthermore, this turns on debug by default when building the rustc compiler. | ||||
| 2013-07-16 | syntax: make a macros-injection pass; conditionally define debug! to a noop ↵ | Huon Wilson | -0/+17 | |
| based on cfg(debug). Macros can be conditionally defined because stripping occurs before macro expansion, but, the built-in macros were only added as part of the actual expansion process and so couldn't be stripped to have definitions conditional on cfg flags. debug! is defined conditionally in terms of the debug config, expanding to nothing unless the --cfg debug flag is passed (to be precise it expands to `if false { normal_debug!(...) }` so that they are still type checked, and to avoid unused variable lints). | ||||
