We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656da58 commit 2f4c233Copy full SHA for 2f4c233
src/lib.rs
@@ -786,6 +786,21 @@ impl Builder {
786
self
787
}
788
789
+ /// Add a given set of lines to the beginning of module `mod`.
790
+ pub fn module_raw_lines<T, I>(mut self, mod_: T, lines: I) -> Self
791
+ where
792
+ T: Into<String>,
793
+ I: IntoIterator,
794
+ I::Item: Into<String>,
795
+ {
796
+ self.options
797
+ .module_lines
798
+ .entry(mod_.into())
799
+ .or_insert_with(Vec::new)
800
+ .extend(lines.into_iter().map(Into::into));
801
+ self
802
+ }
803
+
804
/// Add an argument to be passed straight through to clang.
805
pub fn clang_arg<T: Into<String>>(mut self, arg: T) -> Builder {
806
self.options.clang_args.push(arg.into());
0 commit comments