| 689 | |
| 690 | |
| 691 | LUA_API int lua_rawget (lua_State *L, int idx) { |
| 692 | Table *t; |
| 693 | const TValue *val; |
| 694 | lua_lock(L); |
| 695 | api_checknelems(L, 1); |
| 696 | t = gettable(L, idx); |
| 697 | val = luaH_get(t, s2v(L->top - 1)); |
| 698 | L->top--; /* remove key */ |
| 699 | return finishrawget(L, val); |
| 700 | } |
| 701 | |
| 702 | |
| 703 | LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected