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

Function treatstackoption

Source/Misc/lua/src/lua.c:11604–11612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11602
11603
11604static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
11605if (L == L1) {
11606lua_pushvalue(L, -2);
11607lua_remove(L, -3);
11608}
11609else
11610lua_xmove(L1, L, 1);
11611lua_setfield(L, -2, fname);
11612}
11613
11614
11615static 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