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

Function lua_setlocal

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

Source from the content-addressed store, hash-verified

243
244
245LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {
246 StkId pos = NULL; /* to avoid warnings */
247 const char *name;
248 lua_lock(L);
249 name = luaG_findlocal(L, ar->i_ci, n, &pos);
250 if (name) {
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