MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaT_callbinTM

Function luaT_callbinTM

ThirdParty/lua/lua/ltm.c:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
104 StkId res, TMS event) {
105 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
106 if (ttisnil(tm))
107 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
108 if (ttisnil(tm)) return 0;
109 luaT_callTM(L, tm, p1, p2, res, 1);
110 return 1;
111}
112
113
114void 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