| 734 | |
| 735 | |
| 736 | LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { |
| 737 | lua_Integer l; |
| 738 | int isnum; |
| 739 | lua_len(L, idx); |
| 740 | l = lua_tointegerx(L, -1, &isnum); |
| 741 | if (!isnum) |
| 742 | luaL_error(L, "object length is not an integer"); |
| 743 | lua_pop(L, 1); /* remove object */ |
| 744 | return l; |
| 745 | } |
| 746 | |
| 747 | |
| 748 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
nothing calls this directly
no test coverage detected