首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

thiscall的清栈方式是callee,是不是类成员函数不能支持变长参数?该如何处理

2012-03-29 
thiscall的清栈方式是callee,是不是类成员函数不能支持变长参数?如题,是不是只有cdecl才能支持变长参数,因

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
 


[解决办法]
都支持,可变参数的多少在函数内部是可以得到的.

热点排行
Bad Request.