blob: 8b50d4fcd472a25b56faa77903b63ce3ec979ec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#[macro_export]
macro_rules! has_required_feature {
($object:ident, $feature:ident) => {{
let has_feature = $object.$feature.is_some();
if !has_feature {
println!(
"Missing {} feature {}",
stringify!($object),
stringify!($feature)
);
}
has_feature
}};
}
|