MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_absindex

Function lua_absindex

lib/lua/src/lapi.c:169–173  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 5

luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
luaL_callmetaFunction · 0.85
luaL_tolstringFunction · 0.85
luaL_getsubtableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected