@@ -313,8 +313,8 @@ macro_rules! RT_INTERFACE {
313313 }
314314 impl ComInterface for $interface {
315315 type TAbi = crate :: comptr:: ComAbi <$vtbl>;
316- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
317- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
316+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
317+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
318318 }
319319 impl crate :: RtType for $interface {
320320 type In = Self ;
@@ -362,8 +362,8 @@ macro_rules! RT_INTERFACE {
362362 }
363363 impl ComInterface for $interface {
364364 type TAbi = crate :: comptr:: ComAbi <$vtbl>;
365- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
366- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
365+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
366+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
367367 }
368368 impl crate :: RtType for $interface {
369369 type In = Self ;
@@ -408,8 +408,8 @@ macro_rules! RT_INTERFACE {
408408 pub struct $interface<$t1: RtType >( ComPtr <crate :: comptr:: ComAbi <$vtbl<$t1>>>) ;
409409 impl <$t1> ComInterface for $interface<$t1> where $t1: RtType {
410410 type TAbi = crate :: comptr:: ComAbi <$vtbl<$t1>>;
411- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
412- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
411+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
412+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
413413 }
414414 impl <$t1> crate :: RtType for $interface<$t1> where $t1: RtType {
415415 type In = Self ;
@@ -453,8 +453,8 @@ macro_rules! RT_INTERFACE {
453453 pub struct $interface<$t1: RtType , $t2: RtType >( ComPtr <crate :: comptr:: ComAbi <$vtbl<$t1, $t2>>>) ;
454454 impl <$t1, $t2> ComInterface for $interface<$t1, $t2> where $t1: RtType , $t2: RtType {
455455 type TAbi = crate :: comptr:: ComAbi <$vtbl<$t1, $t2>>;
456- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
457- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
456+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
457+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
458458 }
459459 impl <$t1, $t2> crate :: RtType for $interface<$t1, $t2> where $t1: RtType , $t2: RtType {
460460 type In = Self ;
@@ -634,8 +634,8 @@ macro_rules! RT_CLASS {
634634 unsafe impl crate :: RtClassInterface for $cls { }
635635 impl ComInterface for $cls {
636636 type TAbi = <$interface as ComInterface >:: TAbi ;
637- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $cls( ComPtr :: wrap( ptr) ) }
638- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
637+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $cls( ComPtr :: wrap( ptr) ) }
638+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
639639 }
640640 impl ComIid for $cls {
641641 #[ inline] fn iid( ) -> & ' static crate :: Guid { <$interface as ComIid >:: iid( ) }
0 commit comments