In Visual Studio 2010, __declspec(noinline)
tells the compiler to never inline a particular member function, for instance:
class X {
__declspec(noinline) int member_func() {
return 0;
}
};
edit: Additionally, when compiling with /clr
, functions with security attributes never get inlined (again, this is specific to VS 2010).
I don't think it will prove at all useful at debugging, though.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…