| 743 | |
| 744 | |
| 745 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
| 746 | StkId t; |
| 747 | lua_lock(L); |
| 748 | api_checknelems(L, 1); |
| 749 | t = index2addr(L, idx); |
| 750 | setsvalue2s(L, L->top++, luaS_new(L, k)); |
| 751 | luaV_settable(L, t, L->top - 1, L->top - 2); |
| 752 | L->top -= 2; /* pop value and key */ |
| 753 | lua_unlock(L); |
| 754 | } |
| 755 | |
| 756 | |
| 757 | LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected