Home Forums Programming C++ question about header files Reply To: C++ question about header files


Of course inlining is only a suggestion to the compiler which it’s free to ignore and just leave it as a regular function call, but what project setting did you use to get it to ignore the function call completely?![/quote:a77beafff0]

One last point on this. If you want to ensure that a function is never inlined to guarantee a stack frame is created etc. then use this:

[code:1:a77beafff0]#pragma auto_inline(off)

…your function

#pragram auto_inline(on)[/code:1:a77beafff0]

(for Visual Studio… not so sure about gcc)