| 3778 | } |
| 3779 | |
| 3780 | COMPAT53_API lua_Integer luaL_len(lua_State* L, int i) { |
| 3781 | lua_Integer res = 0; |
| 3782 | int isnum = 0; |
| 3783 | luaL_checkstack(L, 1, "not enough stack slots"); |
| 3784 | lua_len(L, i); |
| 3785 | res = lua_tointegerx(L, -1, &isnum); |
| 3786 | lua_pop(L, 1); |
| 3787 | if (!isnum) |
| 3788 | luaL_error(L, "object length is not an integer"); |
| 3789 | return res; |
| 3790 | } |
| 3791 | |
| 3792 | COMPAT53_API void luaL_setfuncs(lua_State* L, const luaL_Reg* l, int nup) { |
| 3793 | luaL_checkstack(L, nup + 1, "too many upvalues"); |
nothing calls this directly
no test coverage detected