|
I might instead use luaL_len() from the auxiliary lib, but perhaps it does the same thing -- as most of those luaL functions are macros or functions that perform a series of operations accomplished with the lua_ functions.Afaik luaL_len() does not push anything on the stack, it just returns an int for the length of the object. It probably calls lua_len() then pops that value and returns int (lua_tointeger()).
-peace- :]