From 6584efa3054cbab2b1d6ea96801ee82f94aeb962 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Thu, 3 Oct 2024 18:48:47 -0700 Subject: [PATCH] Fix local override of enum prefix-with-name Fixes #808 --- src/bindgen/ir/enumeration.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bindgen/ir/enumeration.rs b/src/bindgen/ir/enumeration.rs index 2e633a7d..d6ec313a 100644 --- a/src/bindgen/ir/enumeration.rs +++ b/src/bindgen/ir/enumeration.rs @@ -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 { ""