The naked function will not contain the prologue and epilogue code created by the compiler. This also applies to the implicit return statement at the end of the function.
, ret . asmfunc, . , -, .
, asmfunc - . , goto asmfunc, .. - - .
_declspec(naked) void asmfunc()
{
_asm
{
ret
}
}
ret .