| 655 | |
| 656 | |
| 657 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
| 658 | StkId t; |
| 659 | lua_lock(L); |
| 660 | t = index2addr(L, idx); |
| 661 | api_check(L, ttistable(t), "table expected"); |
| 662 | setobj2s(L, L->top, luaH_getint(hvalue(t), n)); |
| 663 | api_incr_top(L); |
| 664 | lua_unlock(L); |
| 665 | return ttnov(L->top - 1); |
| 666 | } |
| 667 | |
| 668 | |
| 669 | LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) { |
no test coverage detected