| commit | ebef4a23a2dcf92f30eb8ce14a1275201a4a9a53 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 15:33:47 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 17:34:52 2020 -0700 |
| tree | 84a1545342139ebd856bf6dc9f76e2bffd598fe2 | |
| parent | 13af5ccb767a0c9cd3ecbe563e1564af9f5c5131 [diff] [blame] |
Implement fallible C++ functions
diff --git a/gen/include.rs b/gen/include.rs index a4b416a..da6678d 100644 --- a/gen/include.rs +++ b/gen/include.rs
@@ -18,6 +18,7 @@ pub struct Includes { custom: Vec<String>, pub cstdint: bool, + pub cstring: bool, pub memory: bool, pub string: bool, pub type_traits: bool, @@ -41,6 +42,9 @@ if self.cstdint { writeln!(f, "#include <cstdint>")?; } + if self.cstring { + writeln!(f, "#include <cstring>")?; + } if self.memory { writeln!(f, "#include <memory>")?; }