| 11679 | |
| 11680 | |
| 11681 | static int db_setlocal (lua_State *L) { |
| 11682 | int arg; |
| 11683 | lua_State *L1 = getthread(L, &arg); |
| 11684 | lua_Debug ar; |
| 11685 | if (!lua_getstack(L1, luaL_checkint(L, arg+1), &ar)) /* out of range? */ |
| 11686 | return luaL_argerror(L, arg+1, "level out of range"); |
| 11687 | luaL_checkany(L, arg+3); |
| 11688 | lua_settop(L, arg+3); |
| 11689 | lua_xmove(L, L1, 1); |
| 11690 | lua_pushstring(L, lua_setlocal(L1, &ar, luaL_checkint(L, arg+2))); |
| 11691 | return 1; |
| 11692 | } |
| 11693 | |
| 11694 | |
| 11695 | static int auxupvalue (lua_State *L, int get) { |
nothing calls this directly
no test coverage detected