luaL_len

luaL_len[-0, +0, e]

lua_Integer luaL_len (lua_State *L, int index);

Returns the "length" of the value at the given index as a number; it is equivalent to the '#' operator in Lua (see ยง3.4.7). Raises an error if the result of the operation is not an integer. (This case only can happen through metamethods.)

doc_lua
2017-02-21 04:12:16
Comments
Leave a Comment

Please login to continue.