我有一个问题,当我这样做时
luaL_loadstring(luaState, "return 3, 4, 5");
我在堆栈上有 3 个值,但是当我尝试调用函数时
luaL_loadstring(luaState, vhs:get_sender_resolutions());
get_sender_resolutions = {function (self)
local rresc = self.iface:GetSenderResolutionCount()
local resolutions = {}
for i=0,rresc-1 do
local res = self.iface:GetSenderResolution(i)
printdump (res, "#"..i.." = ")
table.insert(resolutions, res)
end
return 6, 7, 8
我在堆栈上只有 1 个值 - 函数?我错过了什么吗?