Empty inline functions vs. empty CPP macros

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 11 14:14:33 UTC 2014


On 2014-03-11 15:11, Joel Sherrill wrote:
> Empty static inlines normally optimize away. So no worries there.
>
> I always prefer static inlines over macros.
>
> Do you have specific example? There are places this may work but
> others that it cannot.

Gedare suggested to use macros instead of empty inline functions in my 
profiling patches.  I would like to find a consensus here so that we can do it 
similar in the future and don't have to discuss this over again.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list