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

Function lua_absindex

extlibs/lua/src/lapi.c:160–164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

158** convert an acceptable stack index into an absolute index
159*/
160LUA_API int lua_absindex (lua_State *L, int idx) {
161 return (idx > 0 || ispseudo(idx))
162 ? idx
163 : cast_int(L->top - L->ci->func) + idx;
164}
165
166
167LUA_API int lua_gettop (lua_State *L) {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected