extern inline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all,

I was wondering about extern inline.  Can this really do inlining when the
implementation exists in another object file?

Like if I declare a function inline in a.h with attribute always_inline
I then use the function in b.cpp
But I implement it in c.cpp

I have hard time thinking this is truly possible, but maybe it is.  I suspect,
in b.cpp, the inlining will fail and it will resort to a regular call in object
file for c.cpp correct?

Yamin

----------------------------------------
This mail sent through www.mywaterloo.ca

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux