Re: inline functions always inlined?
Re: inline functions always inlined?
- Subject: Re: inline functions always inlined?
- From: Howard Moon <email@hidden>
- Date: Wed, 24 Feb 2010 14:18:36 -0800
I have heard that when you define a function as inline, it's the
compiler's choice whether to actually inline it or create function
call based on how much code there is. Is there a way to force it to
inline no matter how big the function is?
You're always free to use a macro instead of a function. Macros are
simple text replacements, which effectively inlines the code.
I know, I know... macros are "evil"! :-) Still, they work for the
little snippets of code that you might normally want to inline,
realizing the goal of no function call overhead while avoiding code
repetition.
-Howard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden