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

Function lua_getlocal

Source/Misc/lua/src/lua.c:4635–4643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4633
4634
4635LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) {
4636CallInfo *ci = L->base_ci + ar->i_ci;
4637const char *name = findlocal(L, ci, n);
4638lua_lock(L);
4639if (name)
4640luaA_pushobject(L, ci->base + (n - 1));
4641lua_unlock(L);
4642return name;
4643}
4644
4645
4646LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {

Callers 1

db_getlocalFunction · 0.85

Calls 2

findlocalFunction · 0.85
luaA_pushobjectFunction · 0.85

Tested by

no test coverage detected