You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a struct declaration with a typedef and the same name, the comment is not generated on the Rust binding.
/** * This is a forward declared struct with typedef */typedefstructStruct2Struct2;
binding:
#[repr(C)]pubstructStruct2{_unused:[u8;0],}
If we change the C typedef to have a non conflicting name:
/** * This is forward declared struct alias */typedefstructStruct2Struct2_alias;
The comment is generated on top of the type alia:
#[repr(C)]pubstructStruct2{_unused:[u8;0],}/// This is forward declared struct aliaspubtypeStruct2_alias = Struct2;
If we add a field to the struct, then the comment is also correctly generated:
/** * This is forward declared struct alias */typedefstructStruct2 {
/** * This is field */intfield;
} Struct2;
/// This is forward declared struct alias#[repr(C)]#[derive(Debug,Default,Copy,Clone)]pubstructStruct2{/// This is fieldpubfield:::std::os::raw::c_int,}
The text was updated successfully, but these errors were encountered:
If we have a struct declaration with a typedef and the same name, the comment is not generated on the Rust binding.
binding:
If we change the C typedef to have a non conflicting name:
The comment is generated on top of the type alia:
If we add a field to the struct, then the comment is also correctly generated:
The text was updated successfully, but these errors were encountered: