| 625 | |
| 626 | |
| 627 | LUA_API int lua_rawget (lua_State *L, int idx) { |
| 628 | StkId t; |
| 629 | lua_lock(L); |
| 630 | t = index2addr(L, idx); |
| 631 | api_check(ttistable(t), "table expected"); |
| 632 | setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1)); |
| 633 | lua_unlock(L); |
| 634 | return ttnov(L->top - 1); |
| 635 | } |
| 636 | |
| 637 | |
| 638 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected