| 2492 | |
| 2493 | |
| 2494 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 2495 | StkId t; |
| 2496 | lua_lock(L); |
| 2497 | api_checknelems(L, 2); |
| 2498 | t = index2adr(L, idx); |
| 2499 | api_checkvalidindex(L, t); |
| 2500 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 2501 | L->top -= 2; /* pop index and value */ |
| 2502 | lua_unlock(L); |
| 2503 | } |
| 2504 | |
| 2505 | |
| 2506 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected