** convert an acceptable stack index into an absolute index */
| 167 | ** convert an acceptable stack index into an absolute index |
| 168 | */ |
| 169 | LUA_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 | |
| 176 | LUA_API int lua_gettop (lua_State *L) { |
no outgoing calls
no test coverage detected