MCPcopy Create free account
hub / github.com/axmolengine/axmol / lua_Integer luaL_len

Function lua_Integer luaL_len

3rdparty/lua/sol/sol.hpp:3780–3790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3778}
3779
3780COMPAT53_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
3792COMPAT53_API void luaL_setfuncs(lua_State* L, const luaL_Reg* l, int nup) {
3793 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