[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: a lua_len that give return, not a new value on stack?
- From: Andrew Starks <andrew.starks@...>
- Date: Fri, 22 Nov 2013 14:29:32 -0600
On Fri, Nov 22, 2013 at 12:53 PM, Liam Devine <email@example.com> wrote:
> For 5.2 there is luaL_len and it's raw counterpart lua_rawlen whilst
> in 5.1 there is the raw method lua_objlen.
I was just going to post that. And thus my fancy addnext becomes:
#define luaL_rawsetnexti(L, index) lua_rawseti(L, index, lua_rawlen(L,
index) + 1)