| 1046 | |
| 1047 | |
| 1048 | LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { |
| 1049 | lua_Integer l; |
| 1050 | int isnum; |
| 1051 | lua_len(L, idx); |
| 1052 | l = lua_tointegerx(L, -1, &isnum); |
| 1053 | if (l_unlikely(!isnum)) |
| 1054 | luaL_error(L, "object length is not an integer"); |
| 1055 | lua_pop(L, 1); /* remove object */ |
| 1056 | return l; |
| 1057 | } |
| 1058 | |
| 1059 | |
| 1060 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected