A noinline inline function? What sorcery is this?

25 · Raymond Chen · May 21, 2020, 2:20 p.m.
You can declare a noinline inline function. void g(); // gcc __attribute__((noinline)) inline void f() { g(); } // MSVC __declspec(noinline) inline void f() { g(); } void tryme() { f(); f(); } What sorcery is this, a function that is both inline and not-inline? The post A noinline inline function? What sorcery is this? appeared first on The Old New Thing....