diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-08-01 23:03:03 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-08-01 23:03:03 +1000 |
| commit | e995d9935b5bccb484db85b75a344258e74f21a5 (patch) | |
| tree | d085291d1293c41d75d78a8294b74a0b094d5e4a /src/rt/sync/timer.cpp | |
| parent | 5c6069c7a90761c120cecbd8e18317bce21dd213 (diff) | |
| download | rust-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
