Skip to content

Commit

Permalink
Object remove instance fields only
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Nov 13, 2024
1 parent b689677 commit aed072e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn system_object_handler(cpp_type: &mut CppType) {
// Remove field because it does not size properly and is not necessary
cpp_type
.declarations
.retain(|t| !matches!(t.as_ref(), CppMember::FieldDecl(_)));
.retain(|t| !matches!(t.as_ref(), CppMember::FieldDecl(f) if f.instance));

// remove size assert too because System::Object will be wrong due to include ordering
// cpp_type
Expand Down

0 comments on commit aed072e

Please sign in to comment.