R
RB
I am relatively inexperienced in C++ but trying to learn. I ran across this
in my studies. My question is not about the declspec since I understand that
it keeps the prolog and epilog out of the declared function.
My question rather is exactly what is going on with throw( ) . I.e. is throw
returning the previous function ?
------------------------------------------------
inline __declspec(naked) unsigned __fastcall Xadd(volatile unsigned* t, int x) throw()
{
__asm mov eax, edx
__asm lock xadd dword ptr [ecx], eax
__asm ret
}
in my studies. My question is not about the declspec since I understand that
it keeps the prolog and epilog out of the declared function.
My question rather is exactly what is going on with throw( ) . I.e. is throw
returning the previous function ?
------------------------------------------------
inline __declspec(naked) unsigned __fastcall Xadd(volatile unsigned* t, int x) throw()
{
__asm mov eax, edx
__asm lock xadd dword ptr [ecx], eax
__asm ret
}