MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_absindex

Function lua_absindex

3rd/lua-5.4.3/src/lapi.c:162–166  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

160** convert an acceptable stack index into an absolute index
161*/
162LUA_API int lua_absindex (lua_State *L, int idx) {
163 return (idx > 0 || ispseudo(idx))
164 ? idx
165 : cast_int(L->top - L->ci->func) + idx;
166}
167
168
169LUA_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