Skip to content

Commit

Permalink
sys: Allow ignoring flags memebers as well
Browse files Browse the repository at this point in the history
useful for ignoring the ALL_MASK kind, see vte4's usage
  • Loading branch information
bilelmoussaoui authored Jul 12, 2024
1 parent d7c0763 commit 6754986
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen/sys/lib_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 6754986

Please sign in to comment.