Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except inline is like register, it is only a nice request to the compiler, not an order.

If you really want to inline no matter what, the only way is with compiler specific keywords/attributes.



You forgot macros. It usually works unless the optimizer lifts them out to a function..


I tend to avoid them, specially in C++ where better mechanisms are available.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: