lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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)