MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / db_setlocal

Function db_setlocal

Source/Misc/lua/src/lua.c:11681–11692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

getthreadFunction · 0.85
lua_getstackFunction · 0.85
luaL_argerrorFunction · 0.85
luaL_checkanyFunction · 0.85
lua_settopFunction · 0.85
lua_xmoveFunction · 0.85
lua_pushstringFunction · 0.85
lua_setlocalFunction · 0.85

Tested by

no test coverage detected