| 645 | |
| 646 | |
| 647 | LUA_API int lua_rawget (lua_State *L, int idx) { |
| 648 | StkId t; |
| 649 | lua_lock(L); |
| 650 | t = index2addr(L, idx); |
| 651 | api_check(L, ttistable(t), "table expected"); |
| 652 | setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1)); |
| 653 | lua_unlock(L); |
| 654 | return ttnov(L->top - 1); |
| 655 | } |
| 656 | |
| 657 | |
| 658 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected