| 730 | |
| 731 | |
| 732 | LUA_API int lua_rawget (lua_State *L, int idx) { |
| 733 | Table *t; |
| 734 | const TValue *val; |
| 735 | lua_lock(L); |
| 736 | api_checknelems(L, 1); |
| 737 | t = gettable(L, idx); |
| 738 | val = luaH_get(t, s2v(L->top.p - 1)); |
| 739 | L->top.p--; /* remove key */ |
| 740 | return finishrawget(L, val); |
| 741 | } |
| 742 | |
| 743 | |
| 744 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected