MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_setlocal

Function lua_setlocal

third-party/lua-5.5.0/src/ldebug.c:244–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

db_setlocalFunction · 0.70

Calls 1

luaG_findlocalFunction · 0.70

Tested by

no test coverage detected