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

Function lua_setlocal

Source/Misc/lua/src/lua.c:4646–4655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4644
4645
4646LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {
4647CallInfo *ci = L->base_ci + ar->i_ci;
4648const char *name = findlocal(L, ci, n);
4649lua_lock(L);
4650if (name)
4651setobjs2s(L, ci->base + (n - 1), L->top - 1);
4652L->top--; /* pop value */
4653lua_unlock(L);
4654return name;
4655}
4656
4657
4658static void funcinfo (lua_Debug *ar, Closure *cl) {

Callers 1

db_setlocalFunction · 0.85

Calls 1

findlocalFunction · 0.85

Tested by

no test coverage detected