| 240 | |
| 241 | |
| 242 | LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { |
| 243 | StkId pos = NULL; /* to avoid warnings */ |
| 244 | const char *name; |
| 245 | lua_lock(L); |
| 246 | name = luaG_findlocal(L, ar->i_ci, n, &pos); |
| 247 | if (name) { |
| 248 | setobjs2s(L, pos, L->top.p - 1); |
| 249 | L->top.p--; /* pop value */ |
| 250 | } |
| 251 | lua_unlock(L); |
| 252 | return name; |
| 253 | } |
| 254 | |
| 255 | |
| 256 | static void funcinfo (lua_Debug *ar, Closure *cl) { |
no test coverage detected