From 5e922a8a8d6e8398c183f96d1f590578330500b0 Mon Sep 17 00:00:00 2001 From: Ian Hobson Date: Thu, 10 Nov 2022 11:30:06 +0100 Subject: [PATCH] Add with_cpp_compat to the builder --- src/bindgen/builder.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bindgen/builder.rs b/src/bindgen/builder.rs index 76a142c91..6ee06e9cd 100644 --- a/src/bindgen/builder.rs +++ b/src/bindgen/builder.rs @@ -149,6 +149,12 @@ impl Builder { self } + #[allow(unused)] + pub fn with_cpp_compat(mut self, cpp_compat: bool) -> Builder { + self.config.cpp_compat = cpp_compat; + self + } + #[allow(unused)] pub fn with_style(mut self, style: Style) -> Builder { self.config.style = style;