Jump to content
  • Advertisement
Sign in to follow this  
discman1028

Some inlines in static libs, some in .inl's

This topic is 4014 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I noticed recently a project I downloaded had put some of its inline function implementation in .inl's it included... but not all implementations were there. Upon further inspection, it seems that only the methods that were FORCE_INLINE'd in the header were defined in the .inl's, the rest appeared to be inside static libraries. I know methods tagged "inline" (not force) don't have to be inlined by the compiler... but my question is: Where/how would you declare/define your non-force-inlined functions such that they get put into a static library, but the force-inlined ones didn't (Visual Studio, say)?

Share this post


Link to post
Share on other sites
Advertisement
The whole idea behind inline is that it can't go into a static lib... inline has the compiler 'copy/paste' that code in there... if it were compiled into a static lib... it can't really do that right.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!