cassius Posted April 22, 2022 Share Posted April 22, 2022 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. Quote 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 More sharing options...
aiaf Posted April 23, 2022 Share Posted April 23, 2022 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 Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
cassius Posted April 23, 2022 Author Share Posted April 23, 2022 thanks a lot. Quote 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 More sharing options...
Recommended Posts
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.