commit | 3bcbb81b5b53a1866e92c0e41d7de9a09f5ead95 | [log] [tgz] |
---|---|---|
author | William Escande <wescande@google.com> | Mon Aug 22 11:27:56 2022 -0700 |
committer | William Escande <wescande@google.com> | Mon Aug 22 11:27:56 2022 -0700 |
tree | f1af6c3fef1dd867d0424ffdc0f4763a0a3a1baf | |
parent | f022aa62e0515b930753da1fbe2d6400cfc841d9 [diff] |
[Bluetooth apex] Use new apex name The Bluetooth apex name is now called com.android.btservices Bug: 243054261 Test: Build Change-Id: I766b9a7bd12bc8e5fc32f02fa02b0e7ffed3bc0a
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.