| 735 | |
| 736 | |
| 737 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 738 | StkId t; |
| 739 | lua_lock(L); |
| 740 | api_checknelems(L, 2); |
| 741 | t = index2addr(L, idx); |
| 742 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 743 | L->top -= 2; /* pop index and value */ |
| 744 | lua_unlock(L); |
| 745 | } |
| 746 | |
| 747 | |
| 748 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected