Skip to content

Commit

Permalink
Only exclude inline function constants (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored May 12, 2023
1 parent 21785db commit e3d5166
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/libs/metadata/src/reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,8 @@ impl<'a> Reader<'a> {
return false;
}

// If the module name lacks a `.` then it's likely either an inline function, which windows-rs
// doesn't currently support, or an invalid import library since the extension must be known
// in order to generate an import table entry unambiguously.
return self.module_ref_name(self.impl_map_scope(impl_map)).contains('.');
// Skip "inline" function constants.
self.module_ref_name(self.impl_map_scope(impl_map)) != "FORCEINLINE"
})
}
pub fn namespace_constants(&self, namespace: &str) -> impl Iterator<Item = Field> + '_ {
Expand Down

0 comments on commit e3d5166

Please sign in to comment.