tag | 4d86f09343c0ecf9d3addaac305d72abdee5a411 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Sep 20 02:34:25 2022 -0700 |
object | b8d4f6b1b9c62633fed0c0f017cc574c63482e9e |
Android Mainline Module Release 8977947,com.google.android.tzdata4
commit | b8d4f6b1b9c62633fed0c0f017cc574c63482e9e | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 28 15:58:31 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 28 15:58:31 2022 +0000 |
tree | 922148d864e3db4510c9ac0118a0c1a4a95056de | |
parent | 0806fbdaf96514038bead1a55010c0677ea5810b [diff] | |
parent | a003185aa2b00004df5b9136ecb091544eeee7b7 [diff] |
Snap for 8512216 from a003185aa2b00004df5b9136ecb091544eeee7b7 to tm-frc-tzdata4-release Change-Id: I36de9c6cd1080961029b499427e318e8e0f728a0
A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted.
[dependencies] cfg-if = "0.1"
cfg_if::cfg_if! { if #[cfg(unix)] { fn foo() { /* unix specific functionality */ } } else if #[cfg(target_pointer_width = "32")] { fn foo() { /* non-unix, 32-bit functionality */ } } else { fn foo() { /* fallback implementation */ } } } fn main() { foo(); }
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in cfg-if
by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.