Forcing inline functions (again) - groan

Cecil Ward cecil at cecilward.com
Wed Jul 15 13:38:34 UTC 2020


I recently noticed
     pragma(inline, true)
which looks extremely useful. A couple of questions :

1. Is this cross-compiler compatible?

2. Can I declare a function in one module and have it _inlined_ 
in another module at the call site?

I’m looking to write functions that expand to approx one or even 
zero machine instructions and having the overhead of a function 
call would be disastrous; in some cases would make it pointless 
having the function due to the slowdown.


More information about the Digitalmars-d-learn mailing list