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

Function treatstackoption

third-party/lua-5.2.4/src/ldblib.c:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
107 if (L == L1) {
108 lua_pushvalue(L, -2);
109 lua_remove(L, -3);
110 }
111 else
112 lua_xmove(L1, L, 1);
113 lua_setfield(L, -2, fname);
114}
115
116
117static int db_getinfo (lua_State *L) {

Callers 1

db_getinfoFunction · 0.70

Calls 4

lua_pushvalueFunction · 0.70
lua_removeFunction · 0.70
lua_xmoveFunction · 0.70
lua_setfieldFunction · 0.70

Tested by

no test coverage detected