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