MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_absindex

Function lua_absindex

freebsd/contrib/openzfs/module/lua/lapi.c:150–154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

148** convert an acceptable stack index into an absolute index
149*/
150LUA_API int lua_absindex (lua_State *L, int idx) {
151 return (idx > 0 || ispseudo(idx))
152 ? idx
153 : cast_int(L->top - L->ci->func + idx);
154}
155
156
157LUA_API int lua_gettop (lua_State *L) {

Callers 5

zcp_lua_to_nvlist_implFunction · 0.85
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