MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_absindex

Function lua_absindex

ThirdParty/lua/lua/lapi.c:159–163  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected