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