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