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