about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-08-01 23:03:03 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-08-01 23:03:03 +1000
commite995d9935b5bccb484db85b75a344258e74f21a5 (patch)
treed085291d1293c41d75d78a8294b74a0b094d5e4a /src/rt/sync/timer.cpp
parent5c6069c7a90761c120cecbd8e18317bce21dd213 (diff)
downloadrust-e995d9935b5bccb484db85b75a344258e74f21a5.tar.gz
rust-e995d9935b5bccb484db85b75a344258e74f21a5.zip
syntax: implement cfg!() which evaluates to true/false where #[cfg] would keep/remove.
Example:

   if cfg!(test) {
      calculation_to_run_only_when_testing();
   }
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions