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