[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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 <liamdevine@oolua.org> wrote:
> For 5.2 there is luaL_len[1] and it's raw counterpart lua_rawlen[2] whilst
> in 5.1 there is the raw method lua_objlen[3].
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)