| 2638 | } |
| 2639 | |
| 2640 | COMPAT53_API lua_Integer luaL_len(lua_State *L, int i) { |
| 2641 | lua_Integer res = 0; |
| 2642 | int isnum = 0; |
| 2643 | luaL_checkstack(L, 1, "not enough stack slots"); |
| 2644 | lua_len(L, i); |
| 2645 | res = lua_tointegerx(L, -1, &isnum); |
| 2646 | lua_pop(L, 1); |
| 2647 | if (!isnum) |
| 2648 | luaL_error(L, "object length is not an integer"); |
| 2649 | return res; |
| 2650 | } |
| 2651 | |
| 2652 | COMPAT53_API void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) { |
| 2653 | luaL_checkstack(L, nup + 1, "too many upvalues"); |
nothing calls this directly
no test coverage detected