| 644 | |
| 645 | |
| 646 | LUA_API void lua_rawgeti (lua_State *L, int idx, int n) { |
| 647 | StkId t; |
| 648 | lua_lock(L); |
| 649 | t = index2addr(L, idx); |
| 650 | api_check(L, ttistable(t), "table expected"); |
| 651 | setobj2s(L, L->top, luaH_getint(hvalue(t), n)); |
| 652 | api_incr_top(L); |
| 653 | lua_unlock(L); |
| 654 | } |
| 655 | |
| 656 | |
| 657 | LUA_API void lua_rawgetp (lua_State *L, int idx, const void *p) { |