Skip to content

Commit

Permalink
add tilib cppobj print
Browse files Browse the repository at this point in the history
  • Loading branch information
rbran committed Jan 10, 2025
1 parent ba9cf31 commit ec1e84b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/tools/tilib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,21 @@ fn print_til_type_struct(
write!(fmt, " ")?;
}
}
let mut members = &til_struct.members[..];
if til_struct.is_cppobj {
match members.first() {
Some(baseclass) if baseclass.is_baseclass /*&& x.name.is_none()*/=> {
members = &members[1..];
write!(fmt, ": ")?;
print_til_type(fmt, section, None, &baseclass.member_type, true, true, false)?;
write!(fmt, " ")?;
}
_ => {},
}
}

write!(fmt, "{{")?;
for member in &til_struct.members {
for member in members {
let member_name = member.name.as_deref();
print_til_type_complex_member(
fmt,
Expand Down

0 comments on commit ec1e84b

Please sign in to comment.