Closed corecode closed 1 year ago
Interesting. Can you share more of the source? Or better yet, a complete example?
the fragment in question is generated code like this:
extern "C" {
#[doc = "blablabla"]
#[link_name = "SystemCoreClockGet__extern"]
pub fn SystemCoreClockGet() -> u32;
}
which is wrapped in an #[automock] mod functions { ... }
Building mocks for bindgen output for inline static functions results in: