thiscall的清栈方式是callee,是不是类成员函数不能支持变长参数?该如何处理
thiscall的清栈方式是callee,是不是类成员函数不能支持变长参数?
如题,是不是只有cdecl才能支持变长参数,因为调用者清栈。
__stdcall
Callee
Pushes parameters on the stack, in reverse order (right to left)
__fastcall
Callee
Stored in registers, then pushed on stack
__thiscall
Callee
Pushed on stack; this pointer stored in ECX
------解决方案--------------------
都支持,可变参数的多少在函数内部是可以得到的.
如题,是不是只有cdecl才能支持变长参数,因为调用者清栈。
__stdcall
Callee
Pushes parameters on the stack, in reverse order (right to left)
__fastcall
Callee
Stored in registers, then pushed on stack
__thiscall
Callee
Pushed on stack; this pointer stored in ECX
------解决方案--------------------
都支持,可变参数的多少在函数内部是可以得到的.