MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_Integer luaL_len

Function lua_Integer luaL_len

extlibs/sol3/include/sol/sol.hpp:2640–2650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2638}
2639
2640COMPAT53_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
2652COMPAT53_API void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) {
2653 luaL_checkstack(L, nup + 1, "too many upvalues");

Callers

nothing calls this directly

Calls 4

lua_tointegerxFunction · 0.85
luaL_errorFunction · 0.85
luaL_checkstackFunction · 0.70
lua_lenFunction · 0.70

Tested by

no test coverage detected