• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inline function problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inline function problems


  • Subject: Re: inline function problems
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 17 Oct 2010 15:26:40 -0400

On Oct 17, 2010, at 3:05 PM, Kyle Sluder wrote:

> Think about this for a second: "static" means file scope, so obviously you can't reference the symbol from another file. And non-static inlines can't actually be inlined because they may be called from elsewhere or have their addresses taken. So inline is useless to you. Just use an appropriate -O option that does whole-program transformation.

I guess my confusion stems from the fact that Apple' s does exactly what I'm trying to do with their NSMakeRect, NSMakePoint, etc functions. These are declared as static inlines and yet they can be used in any class you choose to dream up, with no special compiler flags, extern references etc..._______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >inline function problems (From: Ken Tozier <email@hidden>)
 >Re: inline function problems (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: inline function problems
  • Next by Date: Re: How to create secondary Thread that listens to event taps?
  • Previous by thread: Re: inline function problems
  • Next by thread: Re: inline function problems
  • Index(es):
    • Date
    • Thread