| 884 | |
| 885 | |
| 886 | LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { |
| 887 | lua_Integer l; |
| 888 | int isnum; |
| 889 | lua_len(L, idx); |
| 890 | l = lua_tointegerx(L, -1, &isnum); |
| 891 | if (l_unlikely(!isnum)) |
| 892 | luaL_error(L, "object length is not an integer"); |
| 893 | lua_pop(L, 1); /* remove object */ |
| 894 | return l; |
| 895 | } |
| 896 | |
| 897 | |
| 898 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected