| 758 | |
| 759 | |
| 760 | LUA_API int lua_rawget (lua_State *L, int idx) { |
| 761 | Table *t; |
| 762 | lu_byte tag; |
| 763 | lua_lock(L); |
| 764 | api_checkpop(L, 1); |
| 765 | t = gettable(L, idx); |
| 766 | tag = luaH_get(t, s2v(L->top.p - 1), s2v(L->top.p - 1)); |
| 767 | L->top.p--; /* pop key */ |
| 768 | return finishrawget(L, tag); |
| 769 | } |
| 770 | |
| 771 | |
| 772 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected