Oleg Krupnov <mailto:oleg.krup...@gmail.com> wrote (Thursday, January 13, 2011 8:21 AM +0200):
I realize that my question has no relation to Cocoa, but it's still
the place where I can get the fastest answer :)
Oleg,

Here are my thoughts:

1) I'm certainly no compiler expert, but I believe that 'static' will defeat 'inline', and make the function's symbol local to the module to boot.
2) 'inline' is just a hint and the compiler can be very picky. 
If the function is too complex (i.e. more than just a few 
statements) the compiler is well within its rights to compile it 
as a normal function and ignore in the inline directive.
3) I think #define is only the solution guaranteed to accomplish 
what you want.
4) I seriously doubt that you're going to accomplish anything 
beyond slowing crackers down for a few minutes. In fact, I'm 
guessing that you'll spend more time working on this than the 
crackers will.
--
James Bucanek

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to