[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work3) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 Jun 2014 21:04:53 -0300
> >> But I still want to see a API can push multiple values, maybe lua_pushvalues?
> >
> > What would it do?
> >
> It may push several values to stack top, e.g.
> lua_pushvalues(L, 5); /* copy top 5 values to stack top */
You can do that with a loop of lua_pushvalue. Both ways are O(n).
-- Roberto