about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-07-16 15:05:50 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-07-16 15:05:50 +1000
commitb48e37e8eecafe3cfc72062a9369aae245063e19 (patch)
tree6c4ea529211d02addc46588667ec9f9ac271a901 /src/rt/rust_kernel.cpp
parent98c16549cb8f709c5e744360e7b3a37dce9fa1de (diff)
downloadrust-b48e37e8eecafe3cfc72062a9369aae245063e19.tar.gz
rust-b48e37e8eecafe3cfc72062a9369aae245063e19.zip
syntax: make a macros-injection pass; conditionally define debug! to a noop 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).
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions