| 783 | |
| 784 | |
| 785 | LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { |
| 786 | lua_Integer l; |
| 787 | int isnum; |
| 788 | lua_len(L, idx); |
| 789 | l = lua_tointegerx(L, -1, &isnum); |
| 790 | if (!isnum) |
| 791 | luaL_error(L, "object length is not an integer"); |
| 792 | lua_pop(L, 1); /* remove object */ |
| 793 | return l; |
| 794 | } |
| 795 | |
| 796 | |
| 797 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected