MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_getlocal

Function lua_getlocal

app/redis-6.2.6/deps/lua/src/ldebug.c:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) {
128 CallInfo *ci = L->base_ci + ar->i_ci;
129 const char *name = findlocal(L, ci, n);
130 lua_lock(L);
131 if (name)
132 luaA_pushobject(L, ci->base + (n - 1));
133 lua_unlock(L);
134 return name;
135}
136
137
138LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {

Callers 3

db_getlocalFunction · 0.70
ldbPrintFunction · 0.50
ldbPrintAllFunction · 0.50

Calls 2

luaA_pushobjectFunction · 0.85
findlocalFunction · 0.70

Tested by

no test coverage detected