From f0fa374bd1cb24cd6733a6fec58119b7609330be 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 2e633a7df..d6ec313a9 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 { ""