function luaY.localfunc(R,I)local C,y={},{}local q=I.fs R:new_localvar(I,R:str_checkname(I),0)R:init_exp(C,"\086\076\079\067\065\076",q.freereg)luaK:reserveregs(q,1)R:adjustlocalvars(I,1)R:body(I,y,false,I.linenumber)luaK:storevar(q,C,y);(R:getlocvar(q,q.nactvar-1)).startpc=q.pc end

function luaY:localfunc(ls)
  local v, b = {}, {}  -- expdesc
  local fs = ls.fs
  self:new_localvar(ls, self:str_checkname(ls), 0)
  self:init_exp(v, "VLOCAL", fs.freereg)
  luaK:reserveregs(fs, 1)
  self:adjustlocalvars(ls, 1)
  self:body(ls, b, false, ls.linenumber)
  luaK:storevar(fs, v, b)
  -- debug information will only see the variable after this point!
  self:getlocvar(fs, fs.nactvar - 1).startpc = fs.pc
end
