Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/main.c:
return IInspectable_GetIids( (IInspectable *)(expr), iid_count, iids ); \
- } \
- static HRESULT WINAPI pfx##_GetRuntimeClassName( iface_type *iface, HSTRING *class_name ) \
- { \
impl_type *impl = impl_from( iface ); \
return IInspectable_GetRuntimeClassName( (IInspectable *)(expr), class_name ); \
- } \
- static HRESULT WINAPI pfx##_GetTrustLevel( iface_type *iface, TrustLevel *trust_level ) \
- { \
impl_type *impl = impl_from( iface ); \
return IInspectable_GetTrustLevel( (IInspectable *)(expr), trust_level ); \
- }
+#define DEFINE_IINSPECTABLE( pfx, iface_type, impl_type, base_iface ) \
- DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, &impl->base_iface )
+#define DEFINE_IINSPECTABLE_OUTER( pfx, iface_type, impl_type, outer_iface ) \
- DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, impl->outer_iface )
If you add the private header file before this change, you could just add these to it now, instead of moving them in https://gitlab.winehq.org/wine/wine/-/merge_requests/716/diffs?commit_id=038....