| 101 | |
| 102 | |
| 103 | int 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 | |
| 114 | void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, |
no test coverage detected