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

Function treatstackoption

deps/lua/src/ldblib.c:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
89 if (L == L1) {
90 lua_pushvalue(L, -2);
91 lua_remove(L, -3);
92 }
93 else
94 lua_xmove(L1, L, 1);
95 lua_setfield(L, -2, fname);
96}
97
98
99static int db_getinfo (lua_State *L) {

Callers 1

db_getinfoFunction · 0.85

Calls 4

lua_pushvalueFunction · 0.85
lua_removeFunction · 0.85
lua_xmoveFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected