MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_absindex

Function lua_absindex

xrepo/packages/l/lua/port/lua/src/lapi.c:172–176  ·  view source on GitHub ↗

** convert an acceptable stack index into an absolute index */

Source from the content-addressed store, hash-verified

170** convert an acceptable stack index into an absolute index
171*/
172LUA_API int lua_absindex (lua_State *L, int idx) {
173 return (idx > 0 || ispseudo(idx))
174 ? idx
175 : cast_int(L->top - L->ci->func) + idx;
176}
177
178
179LUA_API int lua_gettop (lua_State *L) {

Callers 5

luaL_refFunction · 0.70
luaL_unrefFunction · 0.70
luaL_callmetaFunction · 0.70
luaL_tolstringFunction · 0.70
luaL_getsubtableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected