| 908 | |
| 909 | |
| 910 | LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { |
| 911 | lua_Integer l; |
| 912 | int isnum; |
| 913 | lua_len(L, idx); |
| 914 | l = lua_tointegerx(L, -1, &isnum); |
| 915 | if (l_unlikely(!isnum)) |
| 916 | luaL_error(L, "object length is not an integer"); |
| 917 | lua_pop(L, 1); /* remove object */ |
| 918 | return l; |
| 919 | } |
| 920 | |
| 921 | |
| 922 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected