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