MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / callbinTM

Function callbinTM

third-party/lua-5.5.0/src/ltm.c:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137
138static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
139 StkId res, TMS event) {
140 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
141 if (notm(tm))
142 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
143 if (notm(tm))
144 return -1; /* tag method not found */
145 else /* call tag method and return the tag of the result */
146 return luaT_callTMres(L, tm, p1, p2, res);
147}
148
149
150void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,

Callers 3

luaT_trybinTMFunction · 0.70
luaT_tryconcatTMFunction · 0.70
luaT_callorderTMFunction · 0.70

Calls 2

luaT_gettmbyobjFunction · 0.70
luaT_callTMresFunction · 0.70

Tested by

no test coverage detected