diff options
author | Davis Gallinghouse <dgalling@gmail.com> | 2014-12-24 02:45:24 -0500 |
---|---|---|
committer | Davis Gallinghouse <dgalling@gmail.com> | 2014-12-30 17:36:53 -0500 |
commit | f32759ce5d2e52d006031d6f88affe649f87e307 (patch) | |
tree | 14014cd5f10524a1217042e8c104de79c4f84bbc | |
parent | dd96a0c5f416c6d0e0689079e228de536a643153 (diff) |
Add macro option to override enum type
-rw-r--r-- | src/macro.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macro.rs b/src/macro.rs index cffb7cdd..a8fc6190 100644 --- a/src/macro.rs +++ b/src/macro.rs @@ -82,6 +82,7 @@ impl MacroArgsVisitor for BindgenArgsVisitor { Some("link_framework") => self.options.links.push((val.to_string(), LinkType::Framework)), Some("match") => self.options.match_pat.push(val.to_string()), Some("clang_args") => self.options.clang_args.push(val.to_string()), + Some("enum_type") => self.options.override_enum_ty = val.to_string(), _ => return false } true |