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

Function lua_getlocal

third-party/lua-5.1.5/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 1

db_getlocalFunction · 0.70

Calls 2

luaA_pushobjectFunction · 0.85
findlocalFunction · 0.70

Tested by

no test coverage detected