Jump to content

inline function?


cassius
 Share

Recommended Posts

I have some example code in c++ wehich contains inline functions. What is. How do they differ from normal functions? does it just mean you dont need a header file. I tried asking google but did not understand the answer so keep it simple. Thanks.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

The compiler inserts the function body in  place where the inline function was called.

This can be used to remove overhead of function call,

but the inline is just a hint for the compiler, may happen or may not happen.

 

More details in here:

https://docs.microsoft.com/en-us/cpp/cpp/inline-functions-cpp?view=msvc-170

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...