| 831 | } |
| 832 | |
| 833 | LUA_API void lua_rawgeti(lua_State *L, int idx, int n) |
| 834 | { |
| 835 | cTValue *v, *t = index2adr(L, idx); |
| 836 | lj_checkapi(tvistab(t), "stack slot %d is not a table", idx); |
| 837 | v = lj_tab_getint(tabV(t), n); |
| 838 | if (v) { |
| 839 | copyTV(L, L->top, v); |
| 840 | } else { |
| 841 | setnilV(L->top); |
| 842 | } |
| 843 | incr_top(L); |
| 844 | } |
| 845 | |
| 846 | LUA_API int lua_getmetatable(lua_State *L, int idx) |
| 847 | { |
no test coverage detected