thiscall calling convention

Started by Moonglow, February 17, 2008, 06:38:56 PM

Previous topic - Next topic

Moonglow

Hello all,

from MSDN:
/*
This is the default calling convention used by C++ member functions that do not use variable arguments. Under thiscall, the callee cleans the stack, which is impossible for vararg functions. Arguments are pushed on the stack from right to left, with the this pointer being passed via register ECX on the x86 architecture.
*/

I think if thiscall will be natively supported it will be very usefull... for some wrap's around C++ code....


Thank you.

Pelle

I can't really see how a C++ 'this' pointer fits within a C compiler. Probably not.
/Pelle