| 4644 | |
| 4645 | |
| 4646 | LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { |
| 4647 | CallInfo *ci = L->base_ci + ar->i_ci; |
| 4648 | const char *name = findlocal(L, ci, n); |
| 4649 | lua_lock(L); |
| 4650 | if (name) |
| 4651 | setobjs2s(L, ci->base + (n - 1), L->top - 1); |
| 4652 | L->top--; /* pop value */ |
| 4653 | lua_unlock(L); |
| 4654 | return name; |
| 4655 | } |
| 4656 | |
| 4657 | |
| 4658 | static void funcinfo (lua_Debug *ar, Closure *cl) { |
no test coverage detected