MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / treatstackoption

Function treatstackoption

other_src/lua/src/ldblib.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
95 if (L == L1) {
96 lua_pushvalue(L, -2);
97 lua_remove(L, -3);
98 }
99 else
100 lua_xmove(L1, L, 1);
101 lua_setfield(L, -2, fname);
102}
103
104
105static 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