| 725 | |
| 726 | |
| 727 | LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) { |
| 728 | TValue *t; |
| 729 | lu_byte tag; |
| 730 | lua_lock(L); |
| 731 | t = index2value(L, idx); |
| 732 | luaV_fastgeti(t, n, s2v(L->top.p), tag); |
| 733 | if (tagisempty(tag)) { |
| 734 | TValue key; |
| 735 | setivalue(&key, n); |
| 736 | tag = luaV_finishget(L, t, &key, L->top.p, tag); |
| 737 | } |
| 738 | api_incr_top(L); |
| 739 | lua_unlock(L); |
| 740 | return novariant(tag); |
| 741 | } |
| 742 | |
| 743 | |
| 744 | static int finishrawget (lua_State *L, lu_byte tag) { |