MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / callbinTM

Function callbinTM

lib/lua/src/ltm.c:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
138 StkId res, TMS event) {
139 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
140 if (notm(tm))
141 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
142 if (notm(tm)) return 0;
143 luaT_callTMres(L, tm, p1, p2, res);
144 return 1;
145}
146
147
148void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,

Callers 4

luaT_trybinTMFunction · 0.85
luaT_tryconcatTMFunction · 0.85
luaT_callorderTMFunction · 0.85
ifFunction · 0.85

Calls 2

luaT_gettmbyobjFunction · 0.85
luaT_callTMresFunction · 0.85

Tested by

no test coverage detected