[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Checking if Table is Empty (C API)
- From: Sir Pogsalot <sir.pogsalot@...>
- Date: Wed, 20 Nov 2013 11:22:38 +0000
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()).