Skip to content

Commit

Permalink
Fix local override of enum prefix-with-name
Browse files Browse the repository at this point in the history
Fixes #808
  • Loading branch information
jsgf authored and emilio committed Oct 27, 2024
1 parent 33a45da commit 6584efa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bindgen/ir/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,10 @@ impl Item for Enum {
}
}

if config.enumeration.prefix_with_name
|| self.annotations.bool("prefix-with-name").unwrap_or(false)
if self
.annotations
.bool("prefix-with-name")
.unwrap_or(config.enumeration.prefix_with_name)
{
let separator = if config.export.mangle.remove_underscores {
""
Expand Down

0 comments on commit 6584efa

Please sign in to comment.