Fix filtering of _count member fields

This commit is contained in:
Matus Talcik 2018-10-23 23:59:53 +02:00
parent 358220cb85
commit 4072cc39e8
2 changed files with 1790 additions and 1661 deletions

File diff suppressed because it is too large Load diff

View file

@ -1295,7 +1295,7 @@ pub fn derive_setters(_struct: &vkxml::Struct) -> Option<Tokens> {
let count_members: Vec<String> = members.clone().filter_map(|field| {
if field.array.is_some() {
if let Some(ref array_size) = field.size {
if !array_size.starts_with("latexmath") && array_size.ends_with("Count") {
if !array_size.starts_with("latexmath") {
return Some((*array_size).clone());
}
}