| 638 | |
| 639 | |
| 640 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
| 641 | StkId t; |
| 642 | lua_lock(L); |
| 643 | t = index2addr(L, idx); |
| 644 | api_check(L, ttistable(t), "table expected"); |
| 645 | setobj2s(L, L->top, luaH_getint(hvalue(t), n)); |
| 646 | api_incr_top(L); |
| 647 | lua_unlock(L); |
| 648 | return ttnov(L->top - 1); |
| 649 | } |
| 650 | |
| 651 | |
| 652 | LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) { |
no test coverage detected