function luaK.setreturns(r,f,N,o)if N.k=="\086\067\065\076\076"then luaP:SETARG_C(r:getcode(f,N),o+1)elseif N.k=="\086\086\065\082\065\082\071"then luaP:SETARG_B(r:getcode(f,N),o+1)luaP:SETARG_A(r:getcode(f,N),f.freereg)luaK:reserveregs(f,1)end end

function luaK:setreturns(fs, e, nresults)
  if e.k == "VCALL" then  -- expression is an open function call?
    luaP:SETARG_C(self:getcode(fs, e), nresults + 1)
  elseif e.k == "VVARARG" then
    luaP:SETARG_B(self:getcode(fs, e), nresults + 1);
    luaP:SETARG_A(self:getcode(fs, e), fs.freereg);
    luaK:reserveregs(fs, 1)
  end
end
