xref: /aosp_15_r20/external/mesa3d/src/gallium/frontends/rusticl/util/feature.rs (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 #[macro_export]
2 macro_rules! has_required_feature {
3     ($object:ident, $feature:ident) => {{
4         let has_feature = $object.$feature.is_some();
5         if !has_feature {
6             println!(
7                 "Missing {} feature {}",
8                 stringify!($object),
9                 stringify!($feature)
10             );
11         }
12         has_feature
13     }};
14 }
15