From 9246136aba0c4b48821e36af7239477b37c4c03e Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Fri, 12 Jul 2024 22:51:46 +0200 Subject: [PATCH] sys: Allow ignoring flags memebers as well useful for ignoring the ALL_MASK kind, see vte4's usage --- src/codegen/sys/lib_.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/codegen/sys/lib_.rs b/src/codegen/sys/lib_.rs index 548f2cc62..5c3de714c 100644 --- a/src/codegen/sys/lib_.rs +++ b/src/codegen/sys/lib_.rs @@ -223,6 +223,10 @@ fn generate_bitfields(w: &mut dyn Write, env: &Env, items: &[&Bitfield]) -> Resu .find_map(|m| m.version) .or(member.version); + if member_config.iter().any(|m| m.status.ignored()) { + continue; + } + let val: i64 = member.value.parse().unwrap(); version_condition(w, env, None, version, false, 0)?;