| 2430 | |
| 2431 | |
| 2432 | LUALIB_API lua_Integer luaL_len(lua_State *L, int idx) { |
| 2433 | lua_Integer l; |
| 2434 | int isnum; |
| 2435 | lua_len(L, idx); |
| 2436 | l = lua_tointegerx(L, -1, &isnum); |
| 2437 | if (!isnum) |
| 2438 | luaL_error(L, "object length is not an integer"); |
| 2439 | lua_pop(L, 1); /* remove object */ |
| 2440 | return l; |
| 2441 | } |
| 2442 | |
| 2443 | |
| 2444 | LUALIB_API const char *luaL_tolstring(lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected