MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_setlocal

Function lua_setlocal

extlibs/lua/src/ldebug.c:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {
249 StkId pos = NULL; /* to avoid warnings */
250 const char *name;
251 lua_lock(L);
252 name = luaG_findlocal(L, ar->i_ci, n, &pos);
253 if (name) {
254 setobjs2s(L, pos, L->top - 1);
255 L->top--; /* pop value */
256 }
257 lua_unlock(L);
258 return name;
259}
260
261
262static void funcinfo (lua_Debug *ar, Closure *cl) {

Callers 1

db_setlocalFunction · 0.85

Calls 1

luaG_findlocalFunction · 0.85

Tested by

no test coverage detected