MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaT_callbinTM

Function luaT_callbinTM

src/Chain/libraries/glua/ltm.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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