MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaT_callbinTM

Function luaT_callbinTM

depends/lua/src/ltm.c:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
125 StkId res, TMS event) {
126 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
127 if (ttisnil(tm))
128 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
129 if (ttisnil(tm)) return 0;
130 luaT_callTM(L, tm, p1, p2, res, 1);
131 return 1;
132}
133
134
135void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,

Callers 2

luaT_trybinTMFunction · 0.85
luaT_callorderTMFunction · 0.85

Calls 2

luaT_gettmbyobjFunction · 0.85
luaT_callTMFunction · 0.85

Tested by

no test coverage detected