MCPcopy Create free account
hub / github.com/defold/defold / treatstackoption

Function treatstackoption

engine/lua/src/lua/ldblib.c:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
88 if (L == L1) {
89 lua_pushvalue(L, -2);
90 lua_remove(L, -3);
91 }
92 else
93 lua_xmove(L1, L, 1);
94 lua_setfield(L, -2, fname);
95}
96
97
98static 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