MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_getlocal

Function lua_getlocal

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

ldbPrintFunction · 0.85
ldbPrintAllFunction · 0.85
db_getlocalFunction · 0.85

Calls 2

findlocalFunction · 0.85
luaA_pushobjectFunction · 0.85

Tested by

no test coverage detected