MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_absindex

Function lua_absindex

depends/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 11

doAssignDFObjectFunction · 0.85
SafeCallStringMethod · 0.85
decode_penFunction · 0.85
CheckPenMethod · 0.85
open_luaMethod · 0.85
SetFieldFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
luaL_callmetaFunction · 0.85
luaL_getsubtableFunction · 0.85
decode_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected